好多命令的位置在/usr/bin。恢复办法如下:
1. /usr/bin/sudo vi /etc/profile (由于你找不到sudo,所以必须写全路径,其他命令如果提示找不到,也需要写全路径)
2.末尾添加以下内容后保存
export PATH=$PATH:/sbin:/usr/bin:/usr/sbin
3.重新启动系统或执行以下命令生效
source /etc/profile

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2021-11-23
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
猜你喜欢
  • 2021-06-27
  • 2021-06-15
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2021-12-06
  • 2021-04-24
相关资源
相似解决方案