Posted by Arjun Arjun on Tuesday 5th April 2016, 1 minute read

How to determine the version of bash

How to version bash determine

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


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.


I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.