How to Find which Ubuntu Linux Version Running on your Computer

|

|

The article provides detailed steps on how to identify the version of Ubuntu Linux operating system running on a system. There are two main versions of Ubuntu: Standard and Long-Term Support (LTS). The version can be identified using command-line utilities (lsb_release, hostnamectl, or examining system files), or through the desktop system’s Settings app.

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’s normal 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 for five years for desktops and servers. The LTS versions are suitable for servers since long-term support is excellent for enterprise applications and services.

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

How to find the 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 the 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 a 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 the 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 a similar line as below:

Ubuntu 22.04.1 LTS \n \l

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

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

cat /etc/os-release

That should output 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="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

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

hostnamectl

That should up 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

There are many ways to discover the Ubuntu version number from the command line.

Find the Ubuntu Linux version via desktop system settings

If you are on an Ubuntu desktop and 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. You should see details about your computer, including the Ubuntu Linux version.

That should do it!

Conclusion:

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

Like this:



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.