The following columncentos usage tutorialwill introduce CentOS’s /etc/profile and ~/.bash_profile and .zshrc - ma_fighting. I hope it will be helpful to friends in need!
Interactive login shell
For interactive login shell, CentOS provides startup The loading sequence of the files is as follows:
Login process:
1. Read and execute the /etc/profilefile;
2. Read and execute Execute the ~/.bash_profilefile;
- If the file does not exist, read and execute the ~/.bash_loginfile;
- If the file does not exist, read Fetch and execute the ~/.profilefile;
Logout process:
1. Read and execute the ~/.bash_logoutfile;
2 . Read and execute the /etc/bash.bash_logoutfile;
.zshrcsource will only take effect in the current window
For more centos technical articles, please visit thecentos introductory tutorialcolumn!
The above is the detailed content of About CentOS/etc/profile and ~/.bash_profile and .zshrc - ma_fighting. For more information, please follow other related articles on the PHP Chinese website!