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
Just use command
echo $BASH_VERSION
It must give you the version of shell. BASH_VERSION is the environment variable which contains version of shell.