I need to check out which shells are available. Which command gives me available (installed shell like, tcsh, csh, bsh) shells in terminal?
Asked
Active
Viewed 1.5k times
2 Answers
19
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
A.B.
- 92,125
0
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
BuZZ-dEE
- 14,533