Back
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
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
31k questions
32.8k answers
501 comments
693 users