Execution Sequence of .bash_* files

On March 15, 2010, in bash, Sequence, by Dipin Krishna

Execution sequence for interactive login shellexecute /etc/profile IF ~/.bash_profile exists THEN execute ~/.bash_profileELSE IF ~/.bash_login exist THEN execute ~/.bash_login ELSE IF ~/.profile exist THEN execute ~/.profile END IF END IFEND IF When you logout of the interactive shell, following is the sequence ofexecution: IF ~/.bash_logout exists THEN execute ~/.bash_logoutEND IF Please note that /etc/bashrc is […]

 

Search