Can't use command line – "command not found" after editing PATH
- by MEM
I'm running OS X Mavericks and was trying to install MAMP PRO 2.2.
I was trying to configure the PATH variable to have the PHP binaries of MAMP PRO. I added the following line on my ~/.bash_profile file:
export PATH=/Applications/MAMP PRO/bin/php/php5.5.3/bin:$PATH
As you may notice, since I have MAMP PRO and not just MAMP, I've added a space. As a consequence, I know have the following error each time I run the terminal:
-bash: export: `PRO/bin/php/php5.5.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin':
not a valid identifier
Worst: I can't get any command to run, like: ls, clear etc. I always get:
"command not found"
I don't even know the absolute path for ls. How can I make the commands work again, so that I can properly fix the path I was trying to setup on the .bash_profile file?