How To

Check Ubuntu Version Using Simple Linux Commands

Knowing how to Check Ubuntu Version details is essential for system administration, troubleshooting, and software compatibility. Whether you manage cloud servers, virtual machines, or personal Linux desktops, identifying the correct Ubuntu release helps you install supported packages and apply the right security updates.

Ubuntu introduces new releases regularly, including Long Term Support (LTS) versions that receive updates for several years. Because of that, checking the installed version becomes an important maintenance task for both beginners and experienced Linux users.

Check Ubuntu Version with lsb_release

One of the most popular ways to identify your Ubuntu release is by using the lsb_release command. It provides clean and readable distribution details directly from the terminal.

Run the following command:

lsb_release -a

The output displays information such as:

  • Ubuntu release number
  • Distribution name
  • Codename
  • Version description

If you only want the Ubuntu description, use:

lsb_release -d

This method works well on most Ubuntu desktop installations. However, some lightweight server deployments may not include the package by default.

Check Ubuntu Version Using os-release

The /etc/os-release file offers another reliable way to retrieve operating system information. Unlike some utilities, this method works on nearly every supported Ubuntu release without requiring extra packages.

Use this command:

cat /etc/os-release

The file contains detailed system metadata, including the Ubuntu version, codename, and support URLs.

To display only the version line, run:

grep PRETTY_NAME /etc/os-release

Many administrators prefer this approach because it works consistently across servers, containers, and desktop environments.

Use hostnamectl for System Details

The hostnamectl command provides both hostname information and operating system details in one place.

Execute:

hostnamectl

Besides the Ubuntu version, the command also shows:

  • Kernel version
  • Architecture
  • Virtualization type
  • Machine ID

As a result, hostnamectl becomes useful when auditing Linux servers or troubleshooting infrastructure environments.

Check Kernel Information with uname

Although uname does not directly reveal the Ubuntu release, it helps identify the Linux kernel version currently running on the system.

Run:

uname -r

For additional system details, use:

uname -a

This command is especially useful when verifying kernel updates or debugging hardware compatibility issues.

Check Ubuntu Version from Desktop Settings

Desktop users can also find Ubuntu version information through the graphical interface.

Open:

Settings → About

Ubuntu displays the operating system version, GNOME desktop details, memory usage, and processor information in this section.

Therefore, users who prefer graphical tools can avoid terminal commands entirely.

Why Ubuntu Version Matters

Running outdated Ubuntu releases may expose systems to unpatched vulnerabilities and unsupported software. Additionally, some applications only support newer LTS versions.

Before installing tools like Docker, Kubernetes, or virtualization software, always confirm the installed Ubuntu version first. This simple step prevents compatibility issues and deployment failures later.

Conclusion

Learning how to Check Ubuntu Version information is a basic yet critical Linux administration skill. Commands like lsb_release, hostnamectl, and cat /etc/os-release make the process quick and reliable across servers and desktops.

Whether you manage enterprise infrastructure or a personal Ubuntu system, regularly verifying your Ubuntu release helps maintain security, compatibility, and system stability.

Cyber Defence

Recent Posts

Install Nginx on Ubuntu 16.04: UFW, PPA, and Config Structure

Nginx (pronounced "engine x") is a free, open-source, high-performance HTTP server and reverse proxy. It handles…

57 minutes ago

Install Nginx on Ubuntu 18.04: UFW, Service Control, and Config

Nginx (pronounced "engine x") is a free, open-source, high-performance HTTP server and reverse proxy. It handles…

1 hour ago

Secure Nginx with Let’s Encrypt on Ubuntu 18.04: SSL Setup Guide

Let's Encrypt is a free, automated, and open certificate authority run by the Internet Security Research…

1 hour ago

Install PHP on Ubuntu 18.04: Apache, Nginx FPM, and Ondrej PPA

PHP is the most widely used server-side scripting language for web development. Ubuntu 18.04 ships with PHP…

1 hour ago

Install Skype on Ubuntu 18.04: .deb Package and Auto-Updates

Skype is one of the most widely used communication platforms in the world. It lets you…

1 hour ago

Install Samba on Ubuntu 18.04: Configure Shares and User Access

Samba is a free, open-source implementation of the SMB/CIFS network protocol that lets Linux servers share…

22 hours ago