Linux - How to list available shells in linux, Find shells present in server
How to list available shells in linux
chsh -l will list all the available shells in the# chsh -l /bin/sh /bin/bash /sbin/nologin /bin/tcsh /bin/csh /bin/zsh
chsl --list-shell will also print he same result as chsh -l
# chsh --list-shell /bin/sh /bin/bash /sbin/nologin /bin/tcsh /bin/csh /bin/zsh
/etc/shells is the file where all the shells are listed. If you want to add any new shell then it can be added in /etc/shells file
# cat /etc/shells /bin/sh /bin/bash /sbin/nologin /bin/tcsh /bin/csh /bin/zsh
This will add your new shell in the available shell list
echo '/your/new/shell' >> /etc/shells
The topic on Linux - How to list available shells in linux is posted by - Math
Hope you have enjoyed, Linux - How to list available shells in linuxThanks for your time