環境變數的順序
載入順序
/etc/profile -> ~/_profile -> base ~/rc -> /etc/bashrc -> /etc/profile.d/sh -> /etc/sysconfig/il8n
當用戶登入進來,先載入/etc/profile ,載入完執行/etc/profile.d/指令碼,然後才執行 HOME/rc,最後查詢 /etc/bashrc
所有的指令碼發現了就執行。
載入順序
/etc/profile -> ~/_profile -> base ~/rc -> /etc/bashrc -> /etc/profile.d/sh -> /etc/sysconfig/il8n
當用戶登入進來,先載入/etc/profile ,載入完執行/etc/profile.d/指令碼,然後才執行 HOME/rc,最後查詢 /etc/bashrc
所有的指令碼發現了就執行。