How do I check the version of Ubuntu I am running?

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:

  1. /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 the cat command:
cat /etc/os-release
  1. /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 the cat command:
cat /etc/lsb-release
  1. hostnamectl command: This command displays system information, including the version of Ubuntu that you are running. To use this command, enter:
hostnamectl
  1. 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.

Related Solutions