deepin 環境變量配置加載順序

加載順序,默認是沒有 .bash_profile 文件bash

1. non-login 方式

~$ su deepin
run /ect/bash.bashrc
run .bashrcfile

2.login 方式

~$ su - deepin
run /ect/profile
run /ect/bash.bashrc
run .profile
run .bashrc文件

=====複製 .profile 更名爲 .bash_profile =========

3. non-login 方式

同1

4.login 方式

~$ su - deepin
run /ect/profile
run /ect/bash.bashrc
run .bash_profile
run .bashrc

====================== 一、二、三、4均有: ~$ bash run /ect/bash.bashrc run .bashrc

相關文章
相關標籤/搜索