When a user logs in, the following two configuration files will be read: 1) etcprofile: global configuration file of the system. it is best not to modify this file. 2 )~ Bash_profile or ~ Bash_login or ~ Profile: The global configuration file of your private configuration file-etcprofileetc
When a user logs in, the following two configuration files are read:
1)/etc/profile: The global configuration file of the system. it is best not to modify this file.
2 )~ /. Bash_profile or ~ /. Bash_login or ~ /. Profile: private configuration file
The global configuration file-/etc/profile will call the following files in sequence: 1)/etc/inputrc 2)/etc/profile. d /*. sh: If you need to set some shared command aliases for all users, you can create a command alias with the extension. sh file 3)/etc/sysconfig/i18n personal configuration file the personal configuration file will be read according to the following priority, read one to stop: 1 )~ /. Bash_profile 2 )~ /. Bash_login 3 )~ /. Profile. by default ,~ /. Bash_profile will also read ~ /. Bashrc, and ~ /. Bashrc will read the/etc/bashrc and manually read the environment configuration file command-source or the decimal point (.) through the source or decimal point (.) can read the configuration file manually.
~ /. Bash_history:History commands are recorded here
~ /. Bash_logout: Command executed when the user logs out