Shell – How to Find List of Available Shells by Command-Line

command lineshell

How to list available shells for use by command-line?

Best Answer

To list available valid login shells for use at time, type following command:

cat /etc/shells

Example:

pandya@pandya-desktop:~$ cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/bin/ksh93

For information about shell visit wikipedia.