I accidentally messed up my $PATH. I Tried to follow the instructions from the previous similar questions but I keep having the same problem When I type: echo$ PATH, I get the following response: /Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin . Do you know how i can reset the PATH? The operating system is OS X El Capitan. Thank you so much
PATH=/bin:/usr/bin in Terminal.
~/.bash_profile (in terminal,
nano/vim/favorite editor ~/.bash_profile) or open Finder, then press Shift+Command+G and paste it in. Then you can comment out the path line. There is no need to delete .bash_profile in its entirety, and it isn't recommended.