To check the version of Ubuntu that you are running on your Linux system using the command line, you can use the lsb_release
command. This command displays information about the Linux distribution, including the version number.
To check the version of Ubuntu that you are running, open a terminal window and run the following command:
refer tuttual:ori.comlsb_release -a
The lsb_release
command will display a list of information about the Linux distribution, including the name, release number, and codename.
For example, the output might look something like this:
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal
In this example, the lsb_release
command is displaying information about an Ubuntu 20.04.1 LTS system. The Distributor ID
field shows the name of the Linux distribution, in this case Ubuntu
. The Description
field shows the version of the Linux distribution, in this case Ubuntu 20.04.1 LTS
. The Release
field shows the release number of the Linux distribution, in this case 20.04
. The Codename
field shows the codename of the Linux distribution, in this case focal
.
If you only want to display the version number of Ubuntu that you are running, you can use the lsb_release
command with the -r
option.
For example:
lsb_release -r
This will display the release number of the Ubuntu distribution that you are running, in this case 20.04
.