今天配置JDK把PATH變數設錯了,導致系統無法登陸:"could not connect to bus session".解決辦法:http://www.89geek.com/2012/01/fix-ubuntu-could-not-connect-to-bus.html.
於是想了解下啟動時,文件的讀入順序.看這篇就夠了 http://blog.csdn.net/miaoheping/article/details/4601593.啟動順序這塊沒必要了解多少,因為現在已經變了很多了.
倒是文件的作用可以大概了解下:~/.bashrc 和 /etc/profile.
其實我們經常需要添加目錄到PATH裡面,比較好的解決方案在這裡:
quoted: If you put your path in.profile
it will be available to your complete desktop session.
http://askubuntu.com/questions/60218/how-to-add-a-directory-to-my-path
本文出自 「Relax」 博客,請務必保留此出處http://zdsfwy.blog.51cto.com/2400848/851515
[火星人 ] linux 環境變數相關已經有384次圍觀