I want to change my shell from the default bash shell to zsh on my Amazon EC2 instances. How do I go about doing it? Thanks!
Try using the
chsh -s /bin/zsh
You can confirm the location of zsh by running
chsh -s $(which zsh)
If you want to change the shell for a user account other than the one you're logged into, you'll need to run it as root, so to change john's shell, do:
sudo chsh -s $(which zsh) john
Note that you'll need to log out and log back in for the change to go into effect. If you're using Gnome or some other window manager, you'll need to completely log out of that session as well—simply closing and opening your terminal is insufficient.
On Ubuntu, inside GNOME terminal, making changes via chsh won't have the expected effect...
To get over this problem, do this:
P.S. Don't have 10 reputation to post images, so all texty instructions. :)
Find the line with your username:
and replace bash with zsh:
Log out and log in back for the changes to take effect.