Linux下添加PATH环境变量

方法一(仅此shell添加):shell

终端执行 export PATH=$PATH:/***/***file


方法二(全局添加):终端

修改/etc/profile方法

export PATH="$PATH:/***/***"

终端运行source /etc/profile

相关文章
相关标签/搜索