Skip to content

How to determine the version of bash

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:

How do I find the version of bash I am running?

We can also use bash --version command to print out the version information for bash.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments