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 difference between cmp and diff commands?
What does this command do,"$more readme.txt“?
What is the difference between cat command and more command?
What is the first character of the output in ls l command?
Write a command to kill the last background job?
What are the commands in UNIX to list the files in a Directory?
What is the significance of the 'tee' command?
Give the command for finding the current date.
hw will u use awk in replacing cahrs and files
How do you grep a case insensitive?
What happens when we execute a unix command?
What does #!/ Bin sh do?
How do I find previous commands in unix?
What does touch command do in unix?
Explain the steps that a shell follows while processing a command.