-bash: ls: command not found
-bash: chown:command not found
解決方法:
vim ~/.bash_profile
打開該文件
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export PATH
在文件末尾添加上面path環(huán)境變量配置
:wq 保存并退出文件
source ~/.bash_profile
在終端執(zhí)行上面命令私杜,是配置生效