How to Check the Ubuntu Version

In this article, you will learn how to check the Ubuntu version.

When managing a server or troubleshooting issues, knowing the version of Ubuntu installed on your system is essential. Below are simple methods to check your Ubuntu version using different tools and commands.

  1. Check Using “lsb_release” Command
    The “lsb_release” command provides full information about the Linux distribution.
    Steps:

    1. Open a terminal window.
    2. Type the following command:
      lsb_release -a
    3. Look for the description and release fields in the output to find your Ubuntu version.
  2. Check Using “/etc/os-release” File:
    This file contains information about the operating system.
    Steps:

    1. Open the terminal.
    2. Run this command:
      cat /etc/os-release
    3. Locate the VERSION or VERSION_ID line to identify your Ubuntu version.
  3. Check Using /etc/issue File:
    The “/etc/issue” file contains the version information shown before the login prompt.
    Steps:

    1. In the terminal, enter:
      cat /etc/issue
    2. The output will display the Ubuntu version.
  4.  Check Using “hostnamectl” Command:
    The “hostnamectl” command offers additional system information, including the OS version.
    Steps:

    1. Open the terminal.
    2. Execute the command:
      hostnamectl
    3. Look for the operating system field in the output.
  5. Check Using Graphical Interface (GUI):
    If you have access to Ubuntu’s graphical interface:

    1. Go to Settings → About.
    2. The Ubuntu version will be listed under OS Name or Details.

In this manner, you can use these methods to quickly find the version of Ubuntu running on your system. These commands are compatible with most Ubuntu distributions, ensuring you can install the right software and manage updates effectively.

Learn how to install Python 3 on Ubuntu 20.04 or 22.04 with this easy-to-follow step-by-step guide.

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

How to Access and Monitor WordPress Error Logs

How to Access and Monitor WordPress Error Logs

As WordPress error logs are your website’s black box recorder, finding and accessing them is…

How to Check the PHP Version & Configuration in cPanel

In this guide, we will look at how to check the PHP version and settings…

How to Manage a Virtual Directory in Plesk

It is pretty easy to modify the virtual directory in Plesk. And so, in this…