On some the shell can be read on in the command prompt, other can be seen when help is ran. But this are not covered by all the shells.
Is there a general command to see what shell is running?
On some the shell can be read on in the command prompt, other can be seen when help is ran. But this are not covered by all the shells.
Is there a general command to see what shell is running?
This should work with most shells and most OSes:
$ ps -o comm -p $$ | tail -n -1
ksh93
Edit: after reading the duplicate link, here is a simpler way that avoids the tail command.
$ ps -o comm= -p $$
ksh93
You can see in /etc/passwd file, or type:
echo $SHELL
or
env
to see your default shell.