bash配置文件說明
login shell:/etc/profile 所有用戶全局設定,它首先會調用以下文件:
/etc/inputrc
/etc/profile.d/*.sh
/etc/sysconfig/i18n
然後按次序隻讀取下麵文件中的一個:
1 ~/.bash_profile->~/.bashrc
2 ~/.bash_login
4 ~/.profile
non-login shell:
~/.bashrc
另外還有當用戶注銷bash時調用~/.bash_logout
最後更新:2017-04-03 07:57:16