Change Default Shell
Usage
cat /etc/shellsecho $SHELLchsh -s /path/to/shellecho $SHELLUsing usermod
usermodgrep ${USER} /etc/passwdsudo usermod --shell /bin/bash nameofuserLast updated
Default shell can be changed by using chsh command.
To see available shells -
cat /etc/shellsTo see current shell -
echo $SHELLTo finally change shell -
chsh -s /path/to/shellTo see your new shell -
echo $SHELLIt should be changed now, in case chsh throws something like you may not change the shell for ${USER}, follow along!
usermodTo see current shell -
grep ${USER} /etc/passwdTo change shell -
sudo usermod --shell /bin/bash nameofuserVerify it by running -
Source: Unix - StackExchange
Last updated
grep ${USER} /etc/passwd