2013年1月6日 星期日

~/.profile 沒有作用

昨天發現寫在.profile的一些export沒有作用,後來發現原來是安裝SyncGood之後它自動幫我建了一個~/.bash_profile所以導致我的~/.profile沒作用!!

查了一下執行/etc/profile, ~/.bash_profile, ~/.bash_login, ~/.profile, ~/.bashrc等 的執行順序

1. /etc/profile

以下三個會先遇到先執行 之後的就跳過

2.1. ~/.bash_profile
2.2. ~/.bash_login
2.3. ~/.profile

登出的時候會執行

~/.bash_logout


沒有留言:

張貼留言