List out all the shells using Linux commands

List out all the shells using Linux commands

To see all the installed shells on your Linux system, use this command in the terminal:

cat /etc/shells

This command shows the locations of all the shells on your system. Each line in the output is a different shell. You might see shells like Bash, Zsh, Fish, Dash, and others.

Here's an example output:

/bin/sh
/bin/bash
/bin/rbash
/bin/dash
/bin/zsh
/bin/fish

Remember that this list might be different based on your particular Linux distribution and the shells installed on your system.