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