The following column centos usage tutorial will 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/profile file;
2. Read and execute Execute the ~/.bash_profile file;
- If the file does not exist, read and execute the ~/.bash_login file;
- If the file does not exist, read Fetch and execute the ~/.profile file;
Logout process:
1. Read and execute the ~/.bash_logout file;
2 . Read and execute the /etc/bash.bash_logout file;
.zshrc source will only take effect in the current window
For more centos technical articles, please visit the centos introductory tutorial column!
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!