vi /etc/profile

文件最后输入export PATH=$PATH:/usr/abc/def/

保存

输入source /etc/profile刷新刚刚修改过的环境变量文件

相关文章: