出现这个问题说明你的 /etc/profile 配置出现了问题,一般是因为path配置出现了问题。排除添加内容中的错误,然后重启一个新窗口执行执行 source /etc/profile即可解决。

当所有的命令都不能使用的时候vi也是失去作用的。这时候需要使用shell命令的绝对路径调用命令。

# 编辑profile文件
/usr/bin/vim /etc/profile 

然后在新的窗口执行

source /etc/profile

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2021-12-30
猜你喜欢
  • 2022-12-23
  • 2021-09-13
  • 2021-07-14
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
相关资源
相似解决方案