1. Add a command, it will lead to mac command can not be used
2. Open a terminal add export PATH = / usr / bin: / usr / sbin: / bin: / sbin: / usr / X11R6 / bin a
3. You can use the command, such as using open open open ~ / .bash_profile delete the wrong command, save
4.source ~/.bash_profile