March 31, 2020
March 31, 2020
It is good to know what version your Ubuntu is at any given time. But especially when working with servers or Linux systems, as they sometimes do not have a graphical interface for you to use.
Knowing your Ubuntu version will help you better understand what packages or applications you should be installing. So how do you check your Ubuntu version?
This article will teach you how to check your Ubuntu version information a few different ways, through the terminal and command line, and using the graphical interface.
Ubuntu releases versions every 6 months. This may seem like a lot, but it makes the development more controlled. Versions are usually released in April and October.
Every two years, there is an LTS (long term supported) version with support for at least 5 years. The current LTS version is 19.10, released in October 2019. You probably already noticed, the Ubuntu version number refers to the year and month of release. That means that the next LTS version will be 22.04 if they continue with this numbering.
On the other hand, all other versions that are not LTS have fairly short support, and their goal is limited to testing new features and bug fixes.
It is possible to know which version of Ubuntu your computer is running from the graphical interface if you’re running it in a desktop environment.
First, we need to start the Ubuntu application and open up the system settings.
Scroll to the bottom and look for the Details section and click on it.
You should now see a simple window with the basic information of the system. In it, we will be able to see, the version of Ubuntu that we are running at the moment. As you can see in the screenshot, our system is running Ubuntu 18.04.
But what if we are on a server? Or the graphical interface is not available?
First, we’ll need to use SSH to access our server. Here’s a tutorial to remind you how to do it with PuTTY.
There are several options we can choose, some show us the version directly and others give more Ubuntu description information.
The fastest way to know the Ubuntu version you are running is by using this command line in your terminal:
The output will look similar to this:
If you are looking for a cleaner description line of what version your ubuntu is, use this command line:
The output of your Ubuntu version will look like this:
Description: Ubuntu 18.04 LTS
As a bonus, we can verify the hardware information of the equipment, by executing this command in the command line:
If the command doesn’t work, you most likely have to install the list hardware utility with the following command:
sudo apt-get install lshw
There are a handful of alternative commands you can use to check your Ubuntu version. You can use:
With the version of Ubuntu looking like this:
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
Or simply typing in this command:
The output from this command will look like this:
Ubuntu 18.04.4 LTS \n \l
Knowing how to check which Ubuntu version you’re working on is something simple but essential. Not knowing your tools and system settings can complicate your work. We can check the Ubuntu version through the graphical interface or the terminal and both methods are quick and easy.