Posted: . At: 6:28 AM. This was 6 years ago. Post ID: 11461
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

Change your Linux shell easily with the chsh command.

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
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/tmux
/usr/bin/screen
/bin/tcsh
/usr/bin/tcsh

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.