bash: Environment file order.
-
Take into account the main readme for this section. README first.
For more information also see: https://www.gnu.org/software/bash/manual/bash.html#Bash-Startup-Files
Tilde
~
mean your $HOMEThe order the bash environment files are read for an interactive login shell.
- /etc/profile
- ~/.bash_profile
- ~/.bash_login
- ~/.profile
On exit this file is invoked.
~/.bash_logout
The order the bash environment files are read for an interactive non-login shell.
~/.bashrc
There are bash options to change the functionality, see the GNU documenation in the link above.
© Lightnetics 2024