Home  >  Article  >  Operation and Maintenance  >  About CentOS/etc/profile and ~/.bash_profile and .zshrc - ma_fighting

About CentOS/etc/profile and ~/.bash_profile and .zshrc - ma_fighting

藏色散人
藏色散人forward
2020-08-13 11:48:192159browse

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!

About CentOS/etc/profile and ~/.bash_profile and .zshrc - ma_fighting

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!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete