Change login shell

Change between bash and zshell

See all the shells installed on the system

# check all shells installed
# List of valid login shells
cat /etc/shells
# /etc/shells: valid login shells

check which shell you're using at the moment

echo $SHELL

change login shell

You can directly provide name with the -s or --shell flag

#chsh -s /bin/zsh
chsh -s $(which zsh)

or you can change login shell interactively (skip the -s)

Changing the login shell for aamnah
Enter the new value, or press ENTER for the default
    Login Shell [/bin/bash]:

RE-LOGIN afterwards for the change to take effect

Please note that this site and the posts on it are, and will always be, a work in progress. If i waited for perfection, i’d never get anything done.