longin shell
輸入用戶名密碼取得的bash
nologin shell
bash的子進(jìn)程
./etc/profile
整個系統(tǒng)的環(huán)境變量缓待,login shell 一定會讀
~/.bash_profile 或者 ~/.bash_login 或者 ~/.profile
用戶的配置文件,讀取順序為
~/.bash_profile
/.bash_login(/.bash_profile 不存在才去讀)
/.profile(/.bash_profile 和~/.bash_login 都不存在才去讀)
source 或 小數(shù)點(.)
讀入環(huán)境配置文件的命令
當(dāng)修改了~/.bash_profile 渠牲,執(zhí)行 source ~/.bash_profile 旋炒,不需要退出重新登錄即可生效
~/.bash_history
記錄歷史命令
~/.bash_logout
登出的時候會讀