linux添加环境变量(centos)

1.查看当前环境变量

#echo $PATH

2.增加环境变量

#vi /etc/profile

export PATH=/usr/path/bin:$PATH

3.生效

#source /etc/profile

原文地址:https://www.cnblogs.com/itfenqing/p/5934972.html