一:修改临时环境变量

在使用 vim /etc/profile 修改环境变量时,写入的内容有错误导致 ls、vim等命令不起作用了,并报出以下错误:
The command could not be located because ‘/bin’ is not included in the PATH environment variable.
解决办法:
命令行输入:

  1. PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"