From Linux Shell Scripting Tutorial - A Beginner's handbook
The ~/.bash_profile ($HOME/.bash_profile) file is executed when you login using console or remotely using ssh.
Sample ~/.bash_profile file
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH unset USERNAME