环境变量配错了 command not found

一般就是忘记在PATH 前面加$

1、可以用whereis或者which命令查看一下有没有这个命令 具体执行
which ls
whereis ls

2、系统环境变量导致的问题
解决方案:
export
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
原文地址:https://www.cnblogs.com/jycjy/p/7123670.html