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 a bash command?

1112


What is merge command in unix?

1443


Explain ‘library functions’ with respect to unix commands?

1113


What do chgrp command do?

1142


What is {} in find command?

1050


What is the function of grep command in unix?

1106


What command is used to check the current users?

1063


What is the comma to display different lines that are found when compare two files?

1084


Who wrote grep?

1014


What is the command to compare two files in unix?

1053


What does the md command do?

1073


What is unix command line?

1178


What do chmod, chown, chgrp commands do?

1222


How do you grep recursively?

1055


What is .sh file?

1107