Last updated on February 10, 2018
In this post, I would like to show you a very trivial example, which will help you to find the version of the bash that you are running.
The easiest way to determine the version of bash that you are using is to print the value of an environment variable. The following command will display your bash version. If the value is empty, you are not running bash.
To Find the version of bash
$ echo $BASH_VERSION
The following screenshot displays the output from my system:
We can also use bash --version
command to print out the version information for bash.