linux登陸載入設定檔順序

來源:互聯網
上載者:User

linux登陸載入設定檔順序 linux 登陸分為本地登陸 和遠程登陸 遠程登陸負載檔案順序a.使用telnet.ssh等串連到伺服器b.伺服器啟動loginc.使用者輸入帳號與口令d.伺服器開啟/etc/shadow  , /etc/passwd  核對資訊。  如果正確就在記憶體載入環境變數e.切換到主目錄f.啟動shell 啟動shell分為登陸載入和非登陸載入1.登陸載入 -- 遠程登陸或者本地使用 命令 xxshell -l系統載入的檔案只有2個 為  /etc/profile  和     ~/.bash_profile(或者.bash_login  或者 .profile)但是系統預設的.pash_profile裡面又調用了~/.bashrc 所以登陸載入shell表現為載入了3個檔案profile  .bash_profile  .bashrc2.非登陸載入只會載入.bashrc 登陸載入和非登陸載入的檔案其實正好算互補關係
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.