How to Find which Ubuntu Linux Version Running on your Computer

computer 4566094 640
computer 4566094 640

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.

Posted by
Richard W

I love computers; maybe way too much. What I learned I try to share at geekrewind.com.

Leave a Reply

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

%d bloggers like this: