Important Notes on bash file
- These files in your home directories have special meaning to bash, providing a way to setup the account environment when you log in and when you invoke another bash command
- If the files are not found in your home directory, you are using the default system on /etc/profile
- Most important is the .bash_profile which is read and the command in it is executed by bash every time you logged on to the system.
- .bashrc is invoked when you start a new shell or by typing bash on the command line.
- If you just need to have the same command run regardless of a subshell or a login shell, you can easily source .bashrc and hence execute .bashrc from within .bash_profile
- .bash_logout is read and executed every time a login shell exits.
0 comments:
Post a Comment