出现错误:
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found
原因是设置环境变量的时候写错了~
在设置的时候没有包含原路径
显示环境变量:
echo $PATH
里面没有/bin/
把它添加进去就就好了~~
转载于:https://blog.51cto.com/itlearner/455131