Ubuntu修改环境变量

1,425 阅读1分钟

sudo vim /etc/profile

加入:
export PATH=<你要加入的路径>:$PATH

就可以了。

终端输入:echo $PATH 可以查看环境变量