how to save and restart bashrc code example Example 1: restart bashrc . ~/.bashrc Example 2: linux refresh .bashrc source /etc/bash.bashrc