添加環境變量:
export xxxx=123
具體內容是環境變量xxxx的對應內容爲123
或者直接將上面的命令在文件中寫入:
echo "export xxxx=123" > ~/.profile
source ~/.profile
刪除環境變量
unset xxxx
添加環境變量:
export xxxx=123
具體內容是環境變量xxxx的對應內容爲123
或者直接將上面的命令在文件中寫入:
echo "export xxxx=123" > ~/.profile
source ~/.profile
刪除環境變量
unset xxxx