To check the version of Ubuntu that you are running, open a terminal and enter the following command:
lsb_release -a
This will display the version of Ubuntu that you are running, as well as other information about your system. For example:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
The output will show the “Description” and “Release” fields, which indicate the version of Ubuntu that you are running. In this example, the system is running Ubuntu 20.04 LTS.
Here are a few additional ways to check the version of Ubuntu that you are running:
/etc/os-release
file: This file contains information about the version of Ubuntu that you are running. You can view the contents of this file by using thecat
command:
cat /etc/os-release
/etc/lsb-release
file: This file also contains information about the version of Ubuntu that you are running. You can view the contents of this file using thecat
command:
cat /etc/lsb-release
hostnamectl
command: This command displays system information, including the version of Ubuntu that you are running. To use this command, enter:
hostnamectl
- GUI method: You can also check the version of Ubuntu that you are running by going to the “About” section of the System Settings. To do this, click on the “Settings” icon on the top right corner of the screen, and then click on “About.” This will display the version of Ubuntu that you are running.