ホームページ  >  記事  >  運用・保守  >  CentOS/etc/profile と ~/.bash_profile と .zshrc について - ma_fighting

CentOS/etc/profile と ~/.bash_profile と .zshrc について - ma_fighting

藏色散人
藏色散人転載
2020-08-13 11:48:192159ブラウズ

次のコラム centos 使い方チュートリアル では、CentOS の /etc/profile と ~/.bash_profile と .zshrc - ma_fighting を紹介します。

CentOS/etc/profile と ~/.bash_profile と .zshrc について - ma_fighting

#インタラクティブ ログイン シェル

インタラクティブ ログイン シェルの場合、CentOS は起動ファイルの読み込みシーケンスを提供します。

ログインプロセス:

1. /
etc/profile ファイルを読んで実行します; 2. 読んで実行します~/.
bash_profile ファイル; - ファイルが存在しない場合は、~/.
bash_login ファイルを読み取って実行します; - ファイルが存在しない場合は、 read ~/.
profile ファイルを取得して実行します;

ログアウト プロセス:

1. ~/.
bash_logout ファイルを読み取って実行します; 2 . /
etc/bash.bash_logout ファイルを読み取って実行します。

.zshrc ソースは現在のウィンドウでのみ有効になります

その他の centos 技術記事については、

centos 入門チュートリアル 列をご覧ください。

以上がCentOS/etc/profile と ~/.bash_profile と .zshrc について - ma_fightingの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事はcnblogs.comで複製されています。侵害がある場合は、admin@php.cn までご連絡ください。