To show the version of Gnome on an Ubuntu Linux system, you can use the following command:
gnome-shell --version
This will display the version number of the Gnome shell, which is the graphical user interface component of the Gnome desktop environment. For example:
GNOME Shell 3.38.2
Alternatively, you can also use the lsb_release
command to show the version of the entire Ubuntu Linux distribution, including the version of Gnome:
lsb_release -a
This will display a range of information about the Linux distribution, including the release name, version number, and codename. For example:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal