[toc]
How to find list of available shells by command-line?
cat /etc/shells
Example:
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?
echo $0
How to check which is the default shell for you?
echo "$SHELL"
$SHELL
gives you the default shell. $0
gives you the current shell.
Terminal command for listing available shells.
grep '^[^#]' /etc/shells
Example:
grep '^[^#]' /etc/shells /bin/sh /bin/dash /bin/bash /bin/rbash /usr/bin/fish
Reference:
http://askubuntu.com/questions/590899/how-to-check-which-shell-am-i-using
http://unix.stackexchange.com/questions/140286/how-to-find-list-of-available-shells-by-command-line
http://askubuntu.com/questions/625601/terminal-command-for-listing-available-shells
Disclaimer:
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
The following two tabs change content below.
Saidul Hassan
Managing Partner at Up Arrow Consulting
COO at Up Arrow Consulting, MCC manager, & Technical SEO consultant. Certified Google Partners and Microsoft Bing Ads Accredited Professional, Python enthusiast, wannabe SysAdmin. Graduated from School of Management & Business Administration (SOMBA), Khulna University.