1.添加命令出错,会导致mac不能使用命令
2.打开终端再添加export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin 一条
3.可以使用命令,用open等打开open ~/.bash_profile 删除错误命令,保存
4.source ~/.bash_profile
1.添加命令出错,会导致mac不能使用命令
2.打开终端再添加export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin 一条
3.可以使用命令,用open等打开open ~/.bash_profile 删除错误命令,保存
4.source ~/.bash_profile
转载于:https://www.cnblogs.com/jzxy/p/11535306.html