Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the use of finger command?

1213


Describe the usage and functionality of the command rm –r * in unix?

2099


What is used to type command?

1057


What does this command do,"$more readme.txt“?

1156


What command is used to switching between users in unix?

1081


What does grep v grep do?

1075


What happens when we execute a unix command?

1138


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1220


What is grep and how do you use it?

1109


What is $0 bash?

1203


Which command is used to find whether the system is 32 bit or 64 bit?

1149


Who command in unix operating system?

1136


What are awk commands?

1159


What do chmod command do?

1220


What does the metacharacter mean?

1134