Find Out What Shell I’m Using

Unix shells include Almquist shell (ash),Bourne shell (B shell, sh), C shell (csh), Bourne Again Shell (bash), Debian Almquist shell (dash), Korn shell (ksh), Public domain Korn shell (pdksh), MirBSD Korn shell (mksh), Z shell (zsh) etc. There are several ways to find out what shell we are using.

$ echo $0
/bin/bash

or

$ ps -p $$
PID TTY TIME CMD
21002 pts/1 00:00:00 bash

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditShare on StumbleUponEmail this to someoneShare on TumblrDigg this

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">