shell first execute the commands in /etc/profile Next the shell looks for ~/.bash_profile, ~/bash_login, ~/.profile
The shell first execute the commands in /etc/profile
Next the shell looks for ~/.bash_profile, ~/bash_login, ~/.profile
You can put commands in one of these files to override the defaults set in /etc/profile
A shell running on a virtual terminal doesn’t execute commands in files ~/.bash_profile, ~/bash_login, ~/.profile
Because commands in .bashrc may be executed many times, and subshells inherit exported variables, it is good idea to put commands that add to existing
Variables in the .bash_profile file.
Comments
Post a Comment