mac cd modify environment variables in addition to bash_profile not take other commands, and closed the terminal

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

Guess you like

Origin www.cnblogs.com/jzxy/p/11535306.html