Ubuntu is one of the most widely-used and user-friendly Linux distributions, known for its user-friendly interface, active community support, and regular updates. When working with Ubuntu, knowing your system’s version is essential, whether you’re troubleshooting issues, preparing for an upgrade, or ensuring software compatibility is necessary. In this guide, we’ll cover How to Check Your Ubuntu Version.
Knowing the version of Ubuntu you’re running is crucial for many tasks. Whether installing new software, configuring a system, or troubleshooting issues, certain applications and commands may only be compatible with specific versions of Ubuntu. Moreover, checking your Ubuntu version helps when you need to:
The command line is one of the most efficient ways to check your Ubuntu version. Here, we’ll cover three different commands you can use to check this information quickly and easily.
The lsb_release command is one of the most commonly used methods for checking your Ubuntu version. It provides detailed information about your system’s release.
Open your terminal.
lsb_release -a
This command shows system information. You’ll see output like:

Another way to check your Ubuntu version is by using the cat command to view the contents of the /etc/os-release file. This file contains system information, including the Ubuntu version.
Open your terminal.
cat /etc/os-release
This will display output like:

Here, you can see:
The hostnamectl command was initially designed to change or display the hostname but also shows system information, such as the version of Ubuntu.
Open your terminal.
hostnamectl
You’ll see output like:

For a GUI-based approach, Ubuntu has simple methods for checking your version without using the terminal. Here are the two most common ways to check the version using the GUI.




To understand system updates, install and use appropriate software, and address some of the issues related to Ubuntu, you need to be well acquainted with your Ubuntu version. Some key reasons why it’s essential include:
When you’ve checked your Ubuntu version and determined it’s time for an upgrade (or a new software installation), following the proper upgrade process is essential. Ubuntu offers several ways to update your system:
To upgrade from the command line, use the following steps:
First, run the following command to confirm your package lists are up to date:
sudo apt update

To upgrade the system packages, use:
sudo apt upgrade

To upgrade to a new Ubuntu version, use the following:
sudo do-release-upgrade

It is always essential for any Linux user to know their Ubuntu version. You can always find out what version of Ubuntu you are using, whether you are using the command line or the graphical interface. Therefore, it is useful when installing new software, fixing problems, and even when planning to upgrade the software. The command to check the Ubuntu version is as follows. By verifying your Ubuntu version, you ensure you are ready for the following procedures for maintaining or upgrading your OS.
Using the methods outlined in this guide, you can quickly and accurately find your Ubuntu version, ensuring your system is up-to-date and optimized for the best performance.

Vinayak Baranwal wrote this article. Use the provided link to connect with Vinayak on LinkedIn for more insightful content or collaboration opportunities.
David Brown
Great Guide! Clear steps to check Ubuntu version via both GUI and command line.