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 / 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 the use of egrep command in unix?

1185


How do I clear my terminal history?

1158


What is updatedb?

1047


How do I delete files from command prompt?

1227


What is the unix command to confirm a remote host is alive or not?

1217


What is the difference between grep and grep?

1132


Which command can you use to find the currently running process in unix server?

1128


What does #!/ Bin sh do?

1068


Which unix command lists files/folders in alphabetical order?

1757


How can we use grep command in unix?

1210


What command is used to switching between users in unix?

1082


What is the command to compare two files in unix?

1125


What is the use of sed command in unix?

1205


What is the difference between cat and more command?

1295


What is grep command in unix with examples?

1221