linux环境变量设置

来源:互联网 发布:linux 网桥 编辑:程序博客网 时间:2024/05/16 10:06

两种方法:

1. export PATH=$PATH:/XXX

2. 编辑/etc/profile

(1)找到# Path manipulation,在pathmunge /usr/local/sbin后(另起一行)添加pathmunge xxx路径

(2)运行source /etc/profile

原创粉丝点击