Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I ran sudo chsh -s /bin/zsh to change my default shell to zsh. I then restarted my computer. When I turned it back on I get just $ as the prompt, so it doesn't look like I even get bash any more.

echo $SHELL is "/bin/sh"

Next steps to either return my shell to bash or fix zsh? This is for Ubuntu 11.04.

share|improve this question
Are you sure you didn't make a typo and run chsh -s /bin/sh? And note that sudo chsh changes root's shell, which isn't a good idea; is this what you really wanted? – Gilles Jul 15 '11 at 9:41
up vote 3 down vote accepted
  • zsh is not installed by default. Did you install it?

  • Are you able to start zsh manually by typing


    at the prompt?

If you answerded both with yes, I suggest you have a look into /etc/passwd. In the first line it should say


If that's not the case, you may also set it here instead of doing it via chsh. But make sure you really installed zsh and you enter the path correctly or you might find yourself locked out of your system.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.