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:

[[email protected] ~]# echo $SHELL
/bin/bash

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

Post navigation

Arunlal Ashok

Operations Engineer at Endurance International Group. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com
We like to travel. Our travelogues are published at Trip Mentor

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 *