How to Find which Ubuntu Linux Version Running on your Computer

This post describes steps one can take to find the version of Ubuntu Linux running on a computer.

A new version of Ubuntu Linux is released frequently. There are two release versions: Standard and Long-Term Support (LTS) releases.

Ubuntu Linux normal or standard releases come out every 6 to 9 months. This is suitable for desktop users since the latest versions include new features and hardware support.

Ubuntu LTS releases occur every two years and are supported five years for both desktop and servers. The LTS versions are suitable for servers since long term support is great for enterprise applications and services.

Below is how one can find out the version of Ubuntu Linux running on a system.

How to find Ubuntu Linux version on a computer

As described above, there are two types of Ubuntu Linux releases: Standard and Long-term support (LTS).

Below are steps you can use to find out the version of Ubuntu you are running.

The quickest way to find out Ubuntu Linux version is to use the lsb_release utility. LSB (Linux Standard Base) is a utility that provides information about Linux distribution.

To use the utility, open your terminal by typing Ctrl — Alt — T on your keyboard to open the terminal.

Then type the commands below:

lsb_release -a

That should output similar info sheet below:

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy

That gives you the version of Ubuntu and the release number.

When you use the -d switch with the lsb_release command instead of a, it displays the description only.

Description:	Ubuntu 22.04.1 LTS

Another way to find out Ubuntu Linux version is via the issue or the os-release file.

Run the commands below to display the content of the issue file. The issue file contains the operating system identification text.

cat /etc/issue

That should output similar line as below:

Ubuntu 22.04.1 LTS \n \l

Alternatively, you may look in the /etc/os-release file to learn find out Ubuntu Linux version.

That file contains more operating system identification data. Run the commands below to display the os-release data for Ubuntu Linux.

cat /etc/os-release

That shoud ouput the lines below:

PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="
SUPPORT_URL="
BUG_REPORT_URL="
PRIVACY_POLICY_URL="
UBUNTU_CODENAME=jammy

The hostnamectl command also shows you info about Ubuntu Linux. Run the commands below to view Ubuntu Linux version.

hostnamectl

That should ouput the info sheet below:

 Static hostname: Ubuntu2204
       Icon name: computer-vm
         Chassis: vm
      Machine ID: 103bd8b830824b90bca97c6ac84ad445
         Boot ID: 8f430b32cc1b4831959fbdcae616810f
  Virtualization: oracle
Operating System: Ubuntu 22.04.1 LTS              
          Kernel: Linux 5.15.0-47-generic
    Architecture: x86-64
 Hardware Vendor: innotek GmbH
  Hardware Model: VirtualBox

These are some of the many ways to find out Ubuntu version number from the command line.

Find Ubuntu Linux version via desktop system settings

If you are on Ubuntu desktop and you want to view the version of Ubuntu Linux running on your computer, you can do that from the Settings app.

To do that, click on the top bar and select the System menu at the top right corner.

Then select Settings.

In the Settings app, select About. From there you should see details about your computer, including Ubuntu Linux version.

That’s should do it!

Conclusion:

This post showed you the many ways to view Ubuntu Linux version running on your computer. If you find any error above or have something to add, please use the comment form below.