修改linux环境变量PATH的方法

根本方法:

vim /etc/environment

在PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin"中加入

想加的路径。

当然还可以在etc/profile或者.bashrc中通过export的方法添加。

你可能感兴趣的:(path,linux)