Linux下出现command not found的解决办法

不管是普通用户还是ROOT用户,修改~/.bash_profile文件,在文件最后加上:
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
保存后再执行source ~/.bash_profile 
就可以了
 
 
posted @ 2017-05-17 13:32  龙昊雪  阅读(5133)  评论(0编辑  收藏  举报