
There are many ways to determine which shells you are currently using.
Method 1
# ps -p $$ PID TTY TIME CMD 1781 pts/1 00:00:00 bash
Note:
CMD = bash = bash shell
Method 2
# echo $0 /bin/bash
Note:
/bin/bash = bash shell
Method 3
# more /etc/passwd | grep USERNAME USERNAME:x:0:0:root:/root:/bin/bash
Note:
grep /etc/passwd file with your username. At there, you can find the shell type at the end.
Method 4
# echo $$ 1781
# ps PID TTY TIME CMD 1781 pts/1 00:00:00 bash 5963 pts/1 00:00:00 ps
Additional note:
• Bourne type shells(bash & ksh) will use $
• C shell will use %
• Super user or root will #


