How to Check Your Ubuntu Version (CLI + GUI)

A visual guide demonstrating how to check Ubuntu version using both CLI and GUI methods.

Knowing the specific version of your operating system is essential for a variety of tasks. Whether you’re troubleshooting an issue, ensuring software compatibility, or verifying that your system is up-to-date with the latest security patches, this simple piece of information is critical. If you’re a user of the popular Linux distribution, Ubuntu, there are a couple of straightforward ways to check your Ubuntu version.

In this guide, we’ll walk through the two main methods: using the command line and using the graphical user interface (GUI). Both approaches are fast and effective, but each has its own advantages depending on your situation.


Why It’s Important to Check Your Ubuntu Version

Before we dive into the “how,” let’s briefly touch on the “why.” Your Ubuntu version number isn’t just a random detail; it’s a key identifier that tells you a lot about your system.

  • Software Compatibility: Many applications, especially those from third-party developers, require a specific version of Ubuntu to run correctly. Checking your version ensures you download and install the right software package.
  • System Updates: To keep your system secure and stable, you need to know if you’re running a Long-Term Support (LTS) release or a standard release, as each has a different support lifecycle.
  • Troubleshooting: When seeking help on forums or from a technical support team, the first question you’ll often be asked is, “What version are you running?” Providing this information can save you time and help others diagnose your problem more effectively.

Method 1: Using the Command Line Interface (CLI)

The command line is the quickest way to check your Ubuntu version, especially if you’re already in a terminal session. There are a few different commands you can use, each providing slightly different information.

The lsb_release Command

The lsb_release command is arguably the most common and user-friendly way to find your Ubuntu version details. It stands for “Linux Standard Base.”

To use it, open a terminal (you can usually find it by searching for “terminal” in your applications or by using the keyboard shortcut Ctrl + Alt + T). Then, type the following command and press Enter:

lsb_release -a

The -a flag stands for “all” and will display all available information, which typically looks something like this:

FieldDescriptionExample
No LSB modules are available.You may see this line, but it does not affect the version information.
Distributor ID:The name of the distribution.Ubuntu
Description:The full name and version.Ubuntu 22.04 LTS
Release:The specific version number.22.04
Codename:The unique name given to the release.jammy

This output provides a comprehensive overview of your installed Ubuntu version, including whether it’s an LTS release.

If you only need the version number, you can use the -r flag:

lsb_release -r

This will simply output the release number, for example: Release: 22.04.

The /etc/os-release File

Another reliable method is to read the contents of the /etc/os-release file. This file contains key identification data about your operating system.

To view its contents, use the cat command in your terminal:

cat /etc/os-release

The output will provide a list of variables. The most relevant ones for checking your version are VERSION_ID and PRETTY_NAME:

PRETTY_NAME="Ubuntu 22.04.2 LTS" 
NAME="Ubuntu" 
VERSION_ID="22.04" 
VERSION="22.04.2 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

This method is highly effective because the /etc/os-release file is a standard part of many Linux distributions, making it a very consistent way to check system details.

The hostnamectl Command

If you’re managing a server or just want another option, the hostnamectl command can also provide the information. It’s primarily used for managing system hostnames but includes OS information.

hostnamectl

The output will include a line for Operating System: which will display your Ubuntu version.


Method 2: Using the Graphical User Interface (GUI)

For those who prefer a point-and-click approach, finding your Ubuntu version is just as simple using the desktop environment.

  1. Open Settings: Click the “Activities” button in the top-left corner of the screen and search for “Settings.” Alternatively, you can click the dropdown menu in the top-right corner and select the “Settings” icon (it often looks like a gear).
  2. Navigate to “About”: In the Settings window, scroll down the left-hand menu until you find the “About” option. It’s usually the last one in the list.
  3. View System Details: The About screen will display a summary of your system, including the “OS Name” and “Ubuntu version” you are running. This section also provides other useful details like your processor, graphics, and memory.

This method is perfect for new users or for anyone who doesn’t have a terminal window open. The information presented is clear and easy to read. You can find more information about Ubuntu on its official website: https://ubuntu.com/.


Which Method Should You Use?

The best method depends on your workflow.

  • For quick checks in a terminal session, the lsb_release -a command is the most direct and provides the most detail.
  • If you’re troubleshooting and need to see a lot of system information at once, the cat /etc/os-release command is a great choice.
  • If you are new to Linux or prefer a visual interface, the Settings > About method is intuitive and user-friendly.

All these methods provide the same critical information: your current Ubuntu version. Now you can confidently check your system’s details and ensure you’re working with the right information for any task.


Final Thoughts on Ubuntu Versions

Understanding how to check your Ubuntu version is a foundational skill for any user, whether you’re a developer, a student, or a casual desktop user. The simplicity and speed of these commands and GUI options are a testament to Ubuntu’s user-centric design. This knowledge will serve you well for a long time, helping you maintain a stable, secure, and compatible system.

Share this post:

Kenzo Ichikawa specializes in software development and cloud technologies. Based in Tokyo, he writes clear, practical guides and analyses that help developers and IT professionals navigate the rapidly evolving tech landscape. Detail-oriented and methodical.When off-duty, you'll likely find him reading manga or watching emotional anime.

Post Comment