Is there a simple way by which I can determine what type of unix shell I am in ie, am I in bash / csh / ksh / tcsh ?
bash / csh / ksh / tcsh
Try:
echo $0
This often works in different shells.
mac:~$ ps PID TTY TIME CMD 223 ttys000 0:00.33 -bash obsd:~$ ps PID TT STAT TIME COMMAND 20038 p0 Ss 0:00.01 -ksh (ksh) 22251 p0 R+ 0:00.00 ps
Or just echo $SHELL
echo $SHELL
The echo $SHELL command will give you the name of your shell relative to root.
Each wrapper I know sets $ variable ($$) in its pid. So that...
ps | grep $$
If you use an OSx terminal, then the shell is indicated in the terminal title bar when it starts - for example: Terminal - ShellName - 80x24
Terminal - ShellName - 80x24