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

Answer Posted / abdullah

Hi folks,

The best answer is echo $0

# echo $SHELL
/bin/bash
#csh
# echo $SHELL
/bin/bash


But, when using echo $0:
[root@abdullah /]# echo $0
-bash
# csh
# echo $0
csh

Is This Answer Correct ?    29 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you grep recursively?

555


What are the dos commands?

646


What does the md command do?

568


What does the metacharacter mean?

608


What is a bash command?

624






What does grep v grep do?

550


Which command is used to restrict incoming messages?

592


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

759


Who invented grep?

651


How can you see the command line history?

582


What is the command to find hidden files in the current directory?

579


How can we use grep command in unix?

612


What is the use of finger command?

597


Is grep faster than awk?

557


What is the command to view process running?

574