liunx -bash:ls:command not found,执行命令总是报找不到

centeros6.5基本命令都command not found,那就是/etc/profile修改出问题了

解决办法:

使用绝对命令vim打开profile

vim /etc/profile

添加:

export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

简便方法:

直接执行

export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

你可能感兴趣的:(liunx -bash:ls:command not found,执行命令总是报找不到)