Question:

What is the command to display the shell's name in UNIX?

by  |  earlier

0 LIKES UnLike

It's "something" $SHELL, I just can't remember it!

 Tags:

   Report

4 ANSWERS


  1. its echo $SHELL or possibly print $SHELL

    you can also (often) tell by the default $PS1 text


  2. Try echo $SHELL or ps

  3. echo $SHELL

  4. echo $SHELL is the most common and POSIX compatible option but some, such as the korn shell, prefer print $SHELL for performance reasons.

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.