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
How do you grep recursively?
What are the dos commands?
What does the md command do?
What does the metacharacter mean?
What is a bash command?
What does grep v grep do?
Which command is used to restrict incoming messages?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
Who invented grep?
How can you see the command line history?
What is the command to find hidden files in the current directory?
How can we use grep command in unix?
What is the use of finger command?
Is grep faster than awk?
What is the command to view process running?