I have a shell on a Unix system.
Is there a command that can tell me which shell I am working ? (bash, zsh, etc. )
I have a shell on a Unix system.
Is there a command that can tell me which shell I am working ? (bash, zsh, etc. )
You can use environment variables to get the current shell and the shell for the user that is logged in!
echo $0 - Displays the shell that is currently in use.
echo $SHELL - Displays the shell for the user currently logged in.
NOTE: You can use the printenv command to look at all the env variables
$SHELL might not be changed if you have started a new shell from your interactive shell.