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(及时生效
本文共 214 字,大约阅读时间需要 1 分钟。
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(及时生效
转载于:https://www.cnblogs.com/legend-song/p/5215435.html