查看環境變量
echo $PATH
將路徑添加到環境變量
修改 /etc/profile 文件,
在文件末尾加上:PATH=$PATH:xxxxxxxxxxxxxxxxxx
export PATH
然後執行source /etc/profile
或 ./profile
使其修改生效(該修改對所有系統用戶生效
https://www.jianshu.com/p/605d47b37c3f
查看環境變量
echo $PATH
將路徑添加到環境變量
修改 /etc/profile 文件,
在文件末尾加上:PATH=$PATH:xxxxxxxxxxxxxxxxxx
export PATH
然後執行source /etc/profile
或 ./profile
使其修改生效(該修改對所有系統用戶生效
https://www.jianshu.com/p/605d47b37c3f