How to check bash version in Linux?

Member

by kelly , in category: Other , 2 years ago

How to check bash version in Linux?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by dmitrypro77 , 2 years ago

@kelly You can use --version to check bash version in Linux:

1
2
bash --version
# Output: GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)


Member

by mortimer , a year ago

@kelly 

You can check the version of Bash (Bourne Again SHell) in Linux by running the following command in your terminal:

1
bash --version


Alternatively, you can run the following command to see the version of your default shell:

1
echo $BASH_VERSION