3

Something's wrong with my ubuntu. The command prompt suddenly changes from maixaolong@709-dl-server:~$ to something in the picture below. How can I fix this?

enter image description here

  • 2
    Did you change your login shell (perhaps to zsh)? – steeldriver Sep 25 '18 at 2:44
  • 1
    @steeldriver, Oh yes, someone changed the login shell to zsh, how can I set it back to bash? – Chan mankong Sep 25 '18 at 2:52
  • @karel That looks like PuTTY, which would have a shell through SSH. – Chai T. Rex Sep 25 '18 at 3:06
6

To change your login shell back to Bash, run:

chsh -s /bin/bash $USER

Then log out and log back in.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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