Ubuntu is an open source Operating System (OS) used by people all over the world. Although it is user-friendly and customizable, it may not always be compatible with additional software. As such, you’ll need to check if your version of Ubuntu will integrate with other programs.

Fortunately, it’s relatively easy to check your Ubuntu version. You can do so using commands in the terminal or by accessing the settings in the Graphical User Interface (GUI).

In this guide, we’ll discuss what Ubuntu is and why you might want to check which version of it you are running. Then, we’ll explain how to perform this check using various easy methods.

If you’re in a hurry, you can see the step-by-step for the easiest solution in the snippet below. But make sure to read the detailed explanation of all methods in this section.

An Overview of Ubuntu (and Why You Might Need to Check Your Version of It)

Ubuntu is a Linux-based OS popular across the world. You can use the desktop, server, or core versions, depending on your needs.

Ubuntu
Ubuntu

The platform is entirely free. It also has some advantages over other OS such as Windows or macOS.

For example, it uses open source software and provides a secure development environment. As such, Ubuntu can be a helpful tool for web developers.

You can also customize most aspects of your User Interface (UI) and User Experience (UX). Therefore, Ubuntu could be an excellent choice if you feel limited by other OS options.

There are updated releases of Ubuntu approximately every six months. New versions of the software usually include maintenance and hardware updates that help the OS run more smoothly. As such, it’s in your best interest to stay up to date with the latest release.

However, you may not know if you’re running the latest version of Ubuntu. Therefore, you might like to check your OS and see if you need to update it.

Furthermore, you may need to check your Ubuntu version when installing third-party software. Not all other platforms may be compatible with the OS updates, so it’s worth investigating this before you install them.

Finally, you may run into some issues when using Ubuntu. If this happens, you can turn to technical support forums such as the official Ubuntu Forums.

The Ubuntu forums
Ubuntu forums

You can improve your forum experience by providing your version of Ubuntu. With this information, other members can assist you more precisely.

How To Check Your Ubuntu Version in the Command Line (4 Methods)

You can check your Ubuntu version quickly using the command line (also known as the terminal). You can access this tool by using the keyboard shortcut Ctrl + Alt + T.

Once you have the command line open, you can use a few different methods to find out your Ubuntu version. Let’s explore some of them.

1. Use the lsb_release -a Command

The lsb_release command shows you details about your Linux distribution. For example, it displays data concerning LSB modules. It also shows the ID and release number of the distributor.

When you add “-a” to the end of this command, it returns all possible information. This method is pretty straightforward, so you might want to utilize it if you need to find out your Ubuntu version quickly.

To start, open up your terminal and type in this command:

lsb_release -a

Then hit your Enter key to return the results. They should look something like this.

Hit "Enter" after the command to return results
Hit “Enter” after the command to return results

You can see your Ubuntu version next to the Description heading. You can also see data about your LSB modules and the codename for your distributor.

2. Use the /etc/lsb-release or /etc/os-release Command

The /etc/lsb-release command can show you your Ubuntu version with separate lines for the release number and its description. It is designed for older systems, so you may like to use it if you’re running an outdated version of Ubuntu.

You can also obtain the same information using the /etc/os-release command. This is compatible with Ubuntu 16.04 and higher.

As before, open your terminal and enter one of the above commands. You’ll need to add “cat” before either of them:

cat etc/os-release

Then, you’ll see a list of information that includes the number of your Ubuntu version and its release name. Additionally, there are a few links to the Ubuntu website and resources that can help you.

Find the Ubuntu version and its release name
Ubuntu version and release name

Using the /etc/lsb-release command will return simpler results that show you the release ID, description, and codename. It doesn’t include the links and the Ubuntu version name.

3. Check the /etc/issue File

The /etc/issue file is a text-based document. It contains system identification data.

Using this method is simpler because the command won’t display anything other than your Ubuntu version. As such, you may like to utilize this file if you’re in a hurry and don’t need to gather any additional information about your system.

As with the previous commands, you’ll need to enter “cat” before the command. Type this into your terminal:

cat /etc/issue

Hit Enter, and you’ll see a single line of text.

Check the /etc/issue file
Check the /etc/issue file

Your version of Ubuntu is the series of numbers before LTS. You don’t need to do anything else here.

4. Use the hostnamectl Command

Finally, you can use the hostnamectl command. This is typically used when you want to change the hostname of your system. However, it also returns information such as your Ubuntu version and machine ID.

Open up your terminal and type in this command:

hostnamectl

Next, press your Enter key and you’ll see a list of information.

Use the hostnamectl command
Use the hostnamectl command

Here you can see both your Ubuntu version and your Ubuntu Linux kernel version. That’s it! Those are the main methods you can use to find the version of your Ubuntu OS.

How To Check Your Ubuntu Version in the GUI Settings?

If you’d rather not use the command line, you can also find your Ubuntu version in your GUI settings. You might prefer to use this method if you’re still getting used to working with the OS and its layout. However, it is a bit more time-consuming.

First, head to Show Applications. It’s the icon in the bottom left of your screen:

Find the "Show APplications" icon
Show Applications icon

Next, click on Settings. If you can’t find it, type “settings” into the search bar at the top of the screen.

Click on "Settings."
Click on “Setings.”

Then select the About tab from the left menu. You’ll need to scroll to the bottom of the list of items to find it. Here, you will be able to see your Ubuntu version next to the OS Name heading.

Find and select the "About" tab from the left menu
Find and select the “About” tab

For example, we’re currently running Ubuntu 20.04.3 on our system. It’s that easy!

Summary

Ubuntu is an open source OS that provides an excellent web development environment. However, it isn’t perfect and may not integrate with all the latest software. Therefore, you might need to check your version of Ubuntu before installing new programs.

To recap, you can check your Ubuntu version using any of the following methods:

  1. Use the lsb_release -a command.
  2. Use the /etc/lsb-release or /etc/os-release command.
  3. Check the /etc/issue file.
  4. Use the hostnamectl command.
  5. Check the Ubuntu version in your GUI settings.

Did you know that Kinsta offers Ubuntu and other development tools as part of our DevKinsta suite? Sign up today for one of our hosting packages to access this feature and many other website services!