Logon-related profiles:
/etc/profile
Scope: Effective for all users
:
A. Defining the user variable
B. Defining the LOGNAME variable
c. Defining mail changes Volume
D. Define the PATH variable
E. Define the hostname variable
F. Define the Histsize variable
G. Define the Umask value
I. Call/etc/profile.d/*.sh File
/etc/profile.d/*.sh
Scope: Effective for all users
Description: This is a family of SH files, no one will be called
For example:
/ETC/PROFILE.D/LANG.SH
function: Call/etc/sysconfg/i18n to set the locale
~/.bash_profile
Scope: User's own home directory, for himself
Effect:
A. Call ~/.bas HRC file
B. After the path variable is added ": $HOME/bin" This directory
~/.BASHRC
Scope: User's own home directory, effective for themselves
role:
A. Define alias alias B. Call/ETC/BASHRC
/ETC/BASHRC
Scope: Effective for all users
:
A. Defining the PS1 variable (prompt style after login)
B. If there is no password Login,
Define Umask value
to define the PATH variable
call/etc/profile.d/*.sh file
Exit the related profile:
~/.bash_logout
Scope: User's own home directory, effective for himself
Role:
A. Default is empty, nothing
B. What to do when you exit
Methods to make the configuration file effective after modifying it:
A. Re-login
B. Using commands
Source configuration file or. Configuration file
C. can be considered. is an abbreviation for the source command
environment variable configuration file in Linux and its role