Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My terminal window in mac is showing login and not bash.The terminal window with login title works like notepad,i want to change back to bash .How can i do that ?please help me out.thanks.

share|improve this question
What do you mean "works like notepad"? Did you accidentally change your default shell to a text editor, so login(1) is invoking a text editor? What does id -P report as the shell (at the end of the line) for your account? – Spiff May 1 '10 at 22:33
I posted an answer to the same question here. – Dan May 20 '11 at 9:35
@gaeron -- Please don't post an answer like the one you've written here, use the comment functionality - use the flag for mod attention – Sathya May 20 '11 at 9:40
Not the same question. This one is simply about what is displayed in the title, the other one about a completely non-working terminal. – Daniel Beck May 20 '11 at 9:40
@Spiff, what Warrior means by "works like notepad" is that there is no program currently responding to terminal input, and therefore anything one types is merely echoed to the terminal. – Chris Page Sep 1 '11 at 3:06
up vote 4 down vote accepted

Click on the Terminal menu item, then on Preferences. Under "When creating a new Terminal window:" click on "Execute this command (specify complete path):" and put in "/bin/bash".

share|improve this answer
+1. I'd also add a reminder that switching from login(1) to bash(1) means your Terminal shells will now just be interactive shells, not login shells, so they will source {/etc/,~/.}bashrc instead of {/etc/,~/.}profile, so you may need to looks at those scripts to make sure you've got the right content in the right place. – Spiff May 1 '10 at 22:39
As of Mac OS X Lion 10.7, any custom command you use that is listed in /etc/shells will be run as a login session. – Chris Page Sep 1 '11 at 2:50
Note that this answer is merely a workaround and doesn't identify or resolve the problem being encountered. Also, it may not work on Lion. The issue is that the login program is hanging for some reason while trying to create a login session. A common cause of this is being on a network with Directory Services (Open Directory) and the server is unresponsive. login has to get your user information from the server in order to log in. This answer may be relying on Terminal not creating a login session, and therefore avoiding communicating with the server. – Chris Page Sep 1 '11 at 3:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .