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

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

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!

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/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!

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!