When the user logs on, the following two profiles will be read:
1)/etc/profile: System global configuration file, it is best not to modify the file
2 ~/.bash_profile or ~/.bash_login or ~/.profile: User-Private configuration file
Global configuration file-/etc/profile
/etc/profile will call the following files in turn:
1)/etc/inputrc
2)/etc/profile.d/*.sh: If you need to help all users set up some shared command aliases, you can create a file with an. sh extension in this directory.
3)/etc/sysconfig/i18n
Personal configuration Files
The personal profile will be read as a priority, read to stop:
1) ~/.bash_profile
2) ~/.bash_login
3) ~/.profile
By default, ~/.bash_profile also reads ~/.BASHRC, and ~/.BASHRC reads/ETC/BASHRC
Manual read Environment Profile command-source or decimal (.)
The configuration file can be read manually through source or decimal point (.).
~/.bash_history: history Command recorded here
~/.bash_logout: Commands that are executed when a user logs off
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/