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 does touch command do in unix?
What do chmod, chown, chgrp commands do?
What is the use of awk command in unix?
What does awk stand for?
What do chgrp command do?
How does pipe () work?
What is the command to view process running?
What are the dos commands?
How do I use grep to search for a file?
What are the differences among a system call, a library function, and a unix command?
What is the difference between cat and more command?
What is used to type command?
What does sed command do in unix?
What does the “echo” command do?
Is it inbetween or in between?