how to add some code to bashrc and save it code example Example: Add the following lines to your $HOME/.bash_profile touch ~/.bash_profile; open ~/.bash_profile