.bash profile

From Linux Shell Scripting Tutorial - A Beginner's handbook
Jump to: navigation, search

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


See also