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 does the md command do?

768


Who command in unix?

782


What is rmdir command?

789


How to find $ai_serual resolved path by using unix

1265


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

890


Using unix command how to display no of records in oracle?

831


What is awk good for?

794


What is used to type command?

750


Can you enlist some commonly used network commands?

799


What does pipe () return?

777


What is unix command line?

811


What do chmod command do?

808


What command is used to check the current users?

785


What is the difference between grep and grep?

797


What is updatedb?

764