输入命令:
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
临时解决后,需要仔细检查profile文件的错误之处,后保存刷新profile就可以了;