bashrc與profile都用于儲存使用者的環境資訊,bashrc用于互動式non-loginshell,而profile用于互動式login shell。系統中存在許多bashrc和profile檔案。
/etc/profile,/etc/bashrc 是系統全局環境變量設定
~/.profile,~/.bashrc使用者家目錄下的私有環境變量設定
詳細請轉
<a href="http://www.cnblogs.com/hongzg1982/articles/2101792.html">linux關于bashrc與profile的差別(轉)</a>