Show which shell is running
Here are some examples of how you can find out which shell is running from the terminal:
Using the
$SHELLenvironment variable:echo $SHELLUsing the
pscommand:ps -p $$Using the
echocommand with the$0parameter:echo $0Using the
pscommand with the-ooption:ps -o comm= -p $$
These commands will help you identify the current shell you are using in your terminal.
Last modified: 28 November 2024