1. 永久修改,對所有使用者有效
# vi /etc/profile
//按鍵盤[Shift + g], 在profile檔案最後添加下面的内容:
[注]:修改檔案後如果想馬上生效,還要運作 #source /etc/profile
2. 永久修改,對單一使用者有效
[注]:修改檔案後如果想馬上生效,還要運作 #source /home/myuser/.bash_profile
3. 隻對目前bash /shell 生效
1. 永久修改,對所有使用者有效
# vi /etc/profile
//按鍵盤[Shift + g], 在profile檔案最後添加下面的内容:
[注]:修改檔案後如果想馬上生效,還要運作 #source /etc/profile
2. 永久修改,對單一使用者有效
[注]:修改檔案後如果想馬上生效,還要運作 #source /home/myuser/.bash_profile
3. 隻對目前bash /shell 生效