To find the version of the GNOME desktop environment on a Linux system, you can use the gnome-session --version
command. This will print the version number of the installed GNOME desktop environment to the terminal.
For example:
$ gnome-session --version GNOME Shell 3.38.1
You can also use the gnome-shell --version
command to get the version of the GNOME Shell, which is the main component of the GNOME desktop environment.
For example:
$ gnome-shell --version GNOME Shell 3.38.1
Alternatively, you can use the lsb_release
command with the -a
option to get the version of the GNOME desktop environment. The lsb_release
command displays information about the Linux distribution, including the version of the GNOME desktop environment.
For example:
$ lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal
In this example, the version of the GNOME desktop environment is 3.36
, as indicated by the Release
field.