Change Default Shell
Default shell can be changed by using chsh command.
Usage
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!
Using usermod
usermodTo see current shell -
$ grep ${USER} /etc/passwdTo change shell -
$ sudo usermod --shell /bin/bash nameofuserVerify it by running -
$ grep ${USER} /etc/passwdSource: Unix - StackExchange
Last updated