1查看环境变量:echo $PATH
2修改环境变量:
1) vi /etc/profile -> export PATH=/sbin:/bin/:/usr/sbin:/bin:/usr/local/sbin:/usr/local/share/bin:$PATH
2) source /etc/profile(及时生效
1查看环境变量:echo $PATH
2修改环境变量:
1) vi /etc/profile -> export PATH=/sbin:/bin/:/usr/sbin:/bin:/usr/local/sbin:/usr/local/share/bin:$PATH
2) source /etc/profile(及时生效