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

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org



















Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap