Bash's configuration file
Bash configuration file :
Persist User Configuration
Profile class: Provides configuration for interactively logged-on users
/etc/profile Global
/etc/profile.d/*.sh Global
~/.bash_profile personal Configuration, valid only for the current user
Function:
Setting environment variables
Used to implement a run command or script
How to read the configuration file:
/etc/profile-->/etc/profile.d/*.sh-->~/.BASH_PROFILE-->~/.BASHRC-->/ETC/BASHRC
BASHRC class: Non-interactive user login provides configuration
/ETC/BASHRC: Global
~/.BASHRC: Personal Configuration
Function:
Setting Local Variables
Command aliases can be defined
How to read a configuration file
~/.BASHRC-->/ETC/BASHRC-->/etc/profile.d/*.sh
Login Type:
Interactive login: Enter user information directly through the terminal login system
Su-username or su-l UserName:
Non-interactive logon:
Su Usename
The terminal under the graphical interface
When executing the script, set the configuration file first
How the new configuration will take effect:
Notifies the shell to reread system files
Source (.) Reread configuration file
. file
Re-Login
12. Learning progress and task of self-study--linux "Bash profile"