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 advaantage of each user having its own copy of the shell?
Explain command to view process running?
What does the metacharacter mean?
What is used to type command?
What is the unix command to confirm a remote host is alive or not?
What are grep patterns?
how to sort the content of the file based on numeric values
How do I search for a file in unix command?
Which command is used to find whether the system is 32 bit or 64 bit?
Name the various commands that are used for the user information in unix.
What is the nmap command?
What is ctrl d?
What is command statement?
How do I find previous commands in unix?
How to use grep command to list find the records of a file containing 10 different strings?