Posted By

mprabhuram on 06/18/11


Tagged

shellscript UnixScripts


Versions (?)

What is the current shell you are in ?


 / Published in: Bash
 

To find out the current shell

  1. ps -ef | grep $$ | awk '{print $8}'

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: praddy on September 3, 2013

These two work well too:

echo $SHELL

and

ps -p $$ -o ucomm=

Posted By: praddy on September 3, 2013

These two work well too:

echo $SHELL

and

ps -p $$ -o ucomm=

You need to login to post a comment.