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
What is the use of egrep command in unix?
How do I clear my terminal history?
What is updatedb?
How do I delete files from command prompt?
What is the unix command to confirm a remote host is alive or not?
What is the difference between grep and grep?
Which command can you use to find the currently running process in unix server?
What does #!/ Bin sh do?
Which unix command lists files/folders in alphabetical order?
How can we use grep command in unix?
What command is used to switching between users in unix?
What is the command to compare two files in unix?
What is the use of sed command in unix?
What is the difference between cat and more command?
What is grep command in unix with examples?