当前位置:   article > 正文

Linux bash: ls: command not found_-bash: ls: command not found

-bash: ls: command not found

原因:环境变量的配置问题,编辑profile文件没有写正确,导致在命令行下 ls等命令不能够识别。
解决办法:在命令行下打入下面这段就可以了

export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin 
  • 1
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号