Change your Linux shell easily with the chsh command.

Posted: October 30, 2017. At: 6:28 AM. This was 3 weeks ago. Post ID: 11461
Page permalink:

This is how to change your login shell with the chsh command. This requires the user to log out and then back in to use their new shell.

ubuntu ~ $ sudo chsh -s /bin/bash

Only a shell listed in /etc/shells may be used. But this is a very quick way to change the user account shell on Linux.

These are the valid shells on my system.

ubuntu ~ $ cat /etc/shells
# /etc/shells: valid login shells

If you install a new shell from source, be sure to add the path to this file, or it will not work properly.

No comments have been made. Use this form to start the conversation :)

Leave a Reply