linux中出现基本命令找不到的问题,经过查找发现是/etc/profile文件出现了问题,解决方案如下:

 

问题详细:

[root@master  ~]# ll
bash: ls: command not found...
Similar command is: 'lz'
[root@master  ~]# ls
bash: ls: command not found...
Similar command is: 'lz'

 

解决方案(注意路径,一般都是如下默认的):

[root@master ~]# export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

 

相关文章:

  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2021-08-08
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案