How To Get Shell Type and Version?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/get-shell-type-version/
PINTEREST
PINTEREST
INSTAGRAM

While using remote sessions we may need to know the type and version of the remote shell . Bash is popular but there may be different shells like sh, csh, ksh etc.

Using $SHELL Variable

Shells provides environment variables to give information about the shell and the environment. $SHELL environemnt variable can be used to get current she type. $SHELL variable information is not so reliable.

We can see that our current shell is bash

Using Ps Command

We can use ps command with some parameters to get shell information like below.

  • We use ps command by providing current process

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/get-shell-type-version/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  Linux Sysstat Utilities For Monitoring System Performance

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)