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 a bash command?
What is merge command in unix?
Explain ‘library functions’ with respect to unix commands?
What do chgrp command do?
What is {} in find command?
What is the function of grep command in unix?
What command is used to check the current users?
What is the comma to display different lines that are found when compare two files?
Who wrote grep?
What is the command to compare two files in unix?
What does the md command do?
What is unix command line?
What do chmod, chown, chgrp commands do?
How do you grep recursively?
What is .sh file?