两种方法:
1. export PATH=$PATH:/XXX
2. 编辑/etc/profile
(1)找到# Path manipulation,在pathmunge /usr/local/sbin后(另起一行)添加pathmunge xxx路径
(2)运行source /etc/profile
本文介绍了两种方法来配置环境变量:使用export命令和编辑/etc/profile文件。详细步骤包括找到特定位置添加路径,并运行source命令使更改生效。
两种方法:
1. export PATH=$PATH:/XXX
2. 编辑/etc/profile
(1)找到# Path manipulation,在pathmunge /usr/local/sbin后(另起一行)添加pathmunge xxx路径
(2)运行source /etc/profile
1979

被折叠的 条评论
为什么被折叠?