如果搞死环境变量别慌张。因为ls等命令都不能使用了,所以先找到/usr/bin/目录

使用./sudo su命令获取root权限

然后在进入/etc目录 利用vim profile命令 修改profile文件。把自己写错那句话删掉

然后用source /etc/profile命令让环境变量立即生效。然后ls、sudo等命令又能用了。

相关文章:

  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
猜你喜欢
  • 2021-10-09
  • 2022-02-07
  • 2021-07-11
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案