I have mis-configured ~/.profile while adding new enviroment variable now i want to restore my original .profile for my macOS, i am not mac expert please help me. None of my shell command is working for me like ls, java, php etc Please help
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
migrated from stackoverflow.com Sep 9 '11 at 17:38
|
There is no "original" .profile on OS X (i.e. by default it doesn't exist). If you don't have a backup, probably the easiest thing to do is rename the .profile so it doesn't cause trouble. Then, if you want, you can try to figure out what's wrong with it, edit it to fix the problem, and reinstall it (you probably have a bad assignment to PATH, from what you describe). To rename it, use:
(note that using |
|||
|
|