what is the command to find out which shell you are running?

Answer Posted / abhilash s thachil

ps is not the correct answer. ps just lists out the running processes.
echo $SHELL will just print the value in environment variable SHELL which is your default shell.

Correct answer is echo $0

This will print current shell even after you change your shell from a running shell.

- Abhilash S Thachil

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk used for?

616


Enumerate some of the most commonly used network commands in unix?

616


What do chgrp command do?

590


How do I open a port?

589


What is the size of time_t?

644






What is grep in bash?

585


What's a command word?

585


Name the general commands in using unix os for a beginner?

621


Explain command to display different lines that are found when compare two files?

676


What is the difference between awk and grep?

557


Which command is used to create a directory?

570


What does find command return in unix?

592


Is ‘du’ a command? If so, what is its use?

633


What is merge command in unix?

942


How do I search for a file in unix command?

546