Can't use command line – "command not found" after editing PATH

Posted by MEM on Super User See other posts from Super User or by MEM
Published on 2013-10-26T13:20:55Z Indexed on 2013/10/26 15:57 UTC
Read the original article Hit count: 229

Filed under:
|
|
|

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?

© Super User or respective owner

Related posts about osx

Related posts about command-line