Login Shell

The --noprofile option tells bash not to source any startup scripts.

Otherwise, /etc/profile is sourced if it exists.

If bash was invoked by sh as opposed to /bin/bash, ~/.profile is sourced if it exists.

Otherwise, ~/.bash_profile, ~/.bash_login or ~/.profile are looked for in that order. The first one found is sourced.



searchSearch Index