terminal command for listing available shells

I need to check out which shells are available. Which command gives me available (installed shell like, tcsh, csh, bsh) shells in terminal?

Asked By: deepblue_86

||

Open a terminal and run this command:

cat /etc/shells

Sample output:

% cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/bin/zsh
/usr/bin/zsh
/bin/ksh93
/bin/tcsh
/usr/bin/tcsh
/usr/bin/fish
/usr/bin/tmux
Answered By: A.B.

Open a terminal and run this command:

chsh -l

Sample output:

/bin/sh
/bin/bash
/usr/bin/fish
/bin/fish
/usr/bin/git-shell
/bin/nu
/usr/bin/nu
Answered By: BuZZ-dEE
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.