0

Possible Duplicate:
How do I reset the $PATH variable on Mac OS X?

When I open terminal and type the ls command, it says:

command not found.

I found a link that resolves the problem, but only temporarily. When I exit the terminal and then re-login I have to follow this procedure again.

Is there a permanent solution to my problem?

1 Answers1

0

Check ~/.profile and ~/.MacOSX/environment.plist to make sure you haven't replaced $PATH by accident. Any lines that set PATH should also add the old $PATH at either the beginning or the end.

nneonneo
  • 920
  • Hi nneonneo, How can I open ~/.MacOSX/environment.plist file. I may able to open .profile file with the following command open -e .profile –  Sep 21 '12 at 05:12
  • If it doesn't exist, then it won't affect you. – nneonneo Sep 21 '12 at 05:14