How to check the shell type used by the Linux operating system

  
                  

1. Enter a command that the system does not recognize (such as #ig) to get the system prompt


aix5.3:/#ig

ksh: ig: not found. Br>


2,#echo $0 (applicable: sh/ksh)


aix5.3:/#echo $0

-ksh


3,#echo $SHELL (user default shell, but does not reflect the current shell in real time)


aix5.3:/#echo $SHELL

/usr/Bin/ksh


4,#ps


aix5.3:/#ps

PID TTY TIME CMD

1843380 pts /56 0:00 -ksh

2269246 pts/56 0:00 ps


Also applicable to other UNIX/LINUX systems.

Copyright © Windows knowledge All Rights Reserved