Mac终端执行 source .bash_profile
以后, 在终端执行任何命令总是提示
command not found
尝试下输入export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
就可以用了, 但是这是零时的
我们打开bash_profile, 在你设置环境变量时的PATH位置上加上$PATH:
就是因为你没把系统命令的路径加上去, 所以终端的一切命令都用不了了, 添加后再次
source .bash_profile