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 the use of finger command?
Describe the usage and functionality of the command rm –r * in unix?
What is used to type command?
What does this command do,"$more readme.txt“?
What command is used to switching between users in unix?
What does grep v grep do?
What happens when we execute a unix command?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What is grep and how do you use it?
What is $0 bash?
Which command is used to find whether the system is 32 bit or 64 bit?
Who command in unix operating system?
What are awk commands?
What do chmod command do?
What does the metacharacter mean?