How/command to find out the current shell – Unix/Linux

Shell is a program that takes your commands from the keyboard and gives them to the operating system to perform. Some common types of shells are listed below:
> /bin/bash
> /bin/ksh
> /bin/csh
> /bin/sh
> /sbin/nologin
etc…

How/command to find out the current shell ?

# echo $SHELL

Example:

[root@localhost ~]# echo $SHELL
/bin/bash

Related Post:
How to change the shell for an already existing user

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

2 thoughts on “How/command to find out the current shell – Unix/Linux

Leave a Reply

Your email address will not be published. Required fields are marked *