1 修改profile
/usr/bin/vi /etc/profile
加入:export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
2 修改.bashrc文件
/usr/bin/vi ~/.bashrc
加入:export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
3 立即生效
source /etc/profile
source ~/.bashrc
标签:bin,profile,sbin,CentOS,提示,usr,PATH,怎么办,local From: https://www.cnblogs.com/hanjun0612/p/17792952.html