How to reset Terminal to initial settings?

Hi all,


I lately have been trying to learn programming through online sources (particularly YouTube). I managed to fiddle around with the terminal application successfully but I am afraid I have done some damage. Since my knowledge of computers is so small, I don't know what I have done. I just know that it is not behaving the way tutorials expect it to.


I would like to reset the Terminal to how it was without me touching it. Is there away to delete my progress and start fresh?


Thanks.

MacBook Air, OS X Mountain Lion (10.8.2)

Posted on Dec 31, 2012 9:05 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 31, 2012 11:57 PM

Assuming that you haven't changed anything outside your home folder, and that you're using the default shell, you can reset the shell to its defaults by running this command:

rm -i ~/.profile ~/.bash*


and you can reset the Terminal application by deleting this file:


~/Library/Preferences/com.apple.Terminal.plist


Quit Terminal and relaunch.

18 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to reset Terminal to initial settings?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.