what is the command to find out which shell you are running?
Answer Posted / abdullah
Hi folks,
The best answer is echo $0
# echo $SHELL
/bin/bash
#csh
# echo $SHELL
/bin/bash
But, when using echo $0:
[root@abdullah /]# echo $0
-bash
# csh
# echo $0
csh
Is This Answer Correct ? | 29 Yes | 3 No |
Post New Answer View All Answers
What is grep and how do you use it?
What are awk commands?
Why is awk called awk?
What is the use of sed command in unix?
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 use nslookup?
What is the pipe command?
Explain command to view process running?
What is used to type command?
What is the use of cut command in unix?
How does shebang work?
Write a command to display a file’s contents in various formats?
Is grep faster than awk?
Why is shebang used?
Name the various commands that are used for the user information in unix.