How to Identify Current Shell
Hi All,
This is how we can find out what the CURRENT shell we are working on a *NIX machine.
ps | grep "$$"
echo "$" will give PID for current shell.
Commands to find DEFAULT shell (for different platforms): echo $SHELL or print $SHELL or set | grep SHELL
Some other useful environement variables:
This is how we can find out what the CURRENT shell we are working on a *NIX machine.
ps | grep "$$"
echo "$" will give PID for current shell.
Commands to find DEFAULT shell (for different platforms): echo $SHELL or print $SHELL or set | grep SHELL
Some other useful environement variables:
current shell - what is the current shell - echo $SHELL
terminal - what is the name of the terminal - echo $TERM
search path for executable files - the path used to find an executable file - echo $PATH
home - home directory - echo $HOME
logname - name logged in withecho $LOGNAME

0 Comments:
Post a Comment
<< Home