加載順序,默認是沒有 .bash_profile 文件bash
~$ su deepin
run /ect/bash.bashrc
run .bashrcfile
~$ su - deepin
run /ect/profile
run /ect/bash.bashrc
run .profile
run .bashrc文件
=====複製 .profile 更名爲 .bash_profile =========
同1
~$ su - deepin
run /ect/profile
run /ect/bash.bashrc
run .bash_profile
run .bashrc
====================== 一、二、三、4均有: ~$ bash run /ect/bash.bashrc run .bashrc