The command could not be located because '/usr/bin

    当设置错环境变量的时候发现输入各种命令  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

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



你可能感兴趣的:(The command could not be located because '/usr/bin)