How to find list of available shells by command-line?
cat /etc/shells # /etc/shells: valid login shells /bin/sh /bin/dash /bin/bash /bin/rbash /usr/bin/fish
How to check which shell you are using?
How to check which is the default shell for you?
$SHELL gives you the default shell.
$0 gives you the current shell.
Terminal command for listing available shells.
grep '^[^#]' /etc/shells
grep '^[^#]' /etc/shells /bin/sh /bin/dash /bin/bash /bin/rbash /usr/bin/fish
As with everything we do and ourselves, this document is a continual work in progress and will be progressively updated. Readers are cautioned not to use the document as a reference or, if they do cite it, to refer to it as a work in progress.
Updated February 27th, 2017