Friday, October 29, 2010

Bash config file loading order

interactive login files sourced Related option
Y Y

/etc/profile, {~/.bash_profile| ~/.bash_login| ~/.profile }
Only one of the files in brackets will be executed.

--noprofile
N Y
Y N /etc/bash.bashrc, ~/.bashrc --norc
       

1 comment:

Jonas Gorauskas said...

There is a wonderful diagram of Bash initialization routines here: http://www.solipsys.co.uk/new/BashInitialisationFiles.html?HN0811