Notes

Change login shell

Change between bash and zshell

Edit on GitHub

System Administration

See all the shells installed on the system

1# check all shells installed
2# List of valid login shells
3cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/bash
/bin/rbash
/bin/dash
/usr/bin/tmux
/bin/zsh
/usr/bin/zsh

check which shell you’re using at the moment

1echo $SHELL
/bin/bash

change login shell

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

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

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

1chsh
Password:
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

Related