1 Bash Information profile for the TTY login interface:/etc/issue
Logon interface information for Telnet telnet:/etc/issue.net
2/ETC/MOTD the contents of this file can be seen by all users including the root user when logging in, so when there is important notice or maintenance, you can edit the content in this file
Bash Environment configuration file:
Login-shell: Bash made by TTY terminal, and enter user and password, so get bash is Login-shell
Non-login Shell: After you log in to Linux with X windows and then start the terminal from the graphical interface, the bash environment is not login bash, or non-login shell
The read profile for these two bash environments is not the same
Config file read by login Shell:
/etc/profile: This is the system settings, it is best not to modify this file
~/.bash_profile or ~/.bash_login or ~/.profile: This is the user bash own personal settings files, their own data, can be written here, the user's own settings file will eventually read into the ~/.BASHRC file, So the user has their own preferences, can be written to ~/.bashrc this file
In fact,/etc/profile will go to invoke the external settings data as follows:
/ETC/PROFILE.D/*.SH: If you want all users to be able to share some command aliases, you can create. SH expanded files in this directory and write some data
/ETC/SYSCONFIG/I18N: This is a user-language configuration file
Anyway, login shell login to read the system environment profile is only/etc/profile, whether it is to modify the system configuration file or personal user profile, you can use the source command re-read into effect, without the need to log off the system to take effect;
Linux's Bash Shell's operating environment