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
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What are the dos commands?
What is $0 bash?
Name the various commands that are used for the user information in unix.
What is the size of time_t?
Which command is used to find whether the system is 32 bit or 64 bit?
What is unix command?
What is the use of cut command in unix?
What is awk command used for?
Write a command that will display files in the current directory, in a colored, long format.
Which command is used to restrict incoming messages?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
How do I delete files from command prompt?
What is the general format of unix command syntax?
Is command prompt unix?