Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

I wanted to know my shell version using a Linux command. I used the following command, but it shows this type of shell I am in.

Command:

echo $SHELL

Result:

/bin/bash

1 Answer

0 votes
by (36.8k points)

This will do it:

$SHELL --version

In my case, the output is:

zsh 5.0.2 (x86_64-pc-linux-gnu) 

To know about Linux join the Linux training

 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...