Change between bash and zshell
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
1echo $SHELL
/bin/bash
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