Execution sequence for interactive login shell scripts

./etc/profile

if ~/.bash_profile exists then

execute ~/.bash_profile

else if ~/.bash_login exists then

execute ~/.bash_login

else if  ~/.profile exists then

execute ~/.profile

fi

~/.bashrc  is not used in interactive scripts.

 

nJoy 😉

 

Write a Reply or Comment

Your email address will not be published.