在配置环境变量时,修改了/etc/profile 文件,然后source /etc/profile

由于一个配置错误,导致一些系统命令没法使用了

 ll
-bash: ls: command not found

 

用下面方法可以修复

命令行 输入;

export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin

然后 vi /etc/profile,纠正错误配置,然后source /etc/profile即可

 

参考:https://blog.csdn.net/estelle_hey/article/details/79946031

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2021-12-14
  • 2021-12-20
  • 2022-12-23
  • 2021-08-31
相关资源
相似解决方案