Change the default shell on Unix
- Posted on
- Authors
- Name
- ansidev
- @ansidev
Solution
List your shells
cat /etc/shells
cat /etc/shells
Find your current shell
echo $SHELL
echo $SHELL
Change your default shell
chsh -s /path/to/shell
chsh -s /path/to/shell
Examples:
chsh -s /bin/sh
chsh -s /bin/bash
chsh -s /bin/zsh
chsh -s /bin/sh
chsh -s /bin/bash
chsh -s /bin/zsh