Checking Shell type

In Windows:

Run the below command to check the underlying shell type.

(dir 2>&1 *`|echo CMD);&<# rem #>echo PowerShell

In Linux:

Run any of the below to check the underlying shell type.

echo $SHELL
echo $0
ps 

Last updated