How to Get the List of Shells on Linux


To know the list of Shells that are available on your Linux Operating System, you can take a look at the /etc/shells configuration file.

# cat /etc/shells
/bin/sh
/bin/bash
/usr/bin/sh
/usr/bin/bash

As you can see, I have two shells available, sh and bash.

Let me install zsh,

# yum install -y zsh
...
Installed:
  zsh.aarch64 0:5.8.1-1.amzn2.0.1 
Complete!

Now if I do cat again of the /etc/shells I should have zsh listed as well.

Get the list of all Shells on Linux
-


Have Questions? Post them here!

Topics Coverage:


🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.

Follow Us: GitHub | Facebook | Twitter | Instagram