红联Linux门户
Linux帮助

The command could not be located because '/usr/bin的解决

发布时间:2016-04-03 02:55:43来源:linux网站作者:_Revive

当设置错环境变量的时候发现输入各种命令  ls,cd ,,,都不行。连vi也不行。一律报错。The command could not be located because '/usr/bin' is not included in the PATH environment variable.clear: command not found.


直接用系统工具的全路径编辑配置文件。我用的是/usr/bin/sudo /usr/bin/vim  /etc/environment

将之前的设置错的环境重新设置,重启机器就好了。


本文永久更新地址:http://www.linuxdiyf.com/linux/19486.html