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

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

藏色散人
Release: 2020-08-13 11:48:19
forward
2262 people have browsed it

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template