how to add something to bash_profile code example Example: Add the following lines to your $HOME/.bash_profile touch ~/.bash_profile; open ~/.bash_profile