How do I find the version of bash I am running?
The -v
parameter for bash stands for verbose, and instructs bash to print out as much information as possible about what it is doing. On startup, it will print out all the configuration it is reading in.
To print out the version information for bash, use bash --version
.
When running bash (e.g. from gnome-terminal
) you can check value of BASH_VERSION
environment variable.
$ echo $BASH_VERSION
4.2.37(1)-release
If the value is empty, you are not running bash
.
There's a key shortcut that instructs current shell information to show up:
Ctrl+x Ctrl+v
From man bash
display-shell-version (C-x C-v)
Display version information about the current instance of bash.
This is the best choice if you have messed with environment variables.