I would like to know about my shell version using a Linux command. I tried the following command, but it shows the type of the shell I am in.
Command:
ec
This will do it:
$SHELL --version
In my case, the output is:
zsh 5.0.2 (x86_64-pc-linux-gnu)