Table of Contents
Introduction
Ubuntu is a Linux distribution and it is open source. The first Ubuntu release was Ubuntu 4.10 and was released on 20 October 2004. Ubuntu is released by Canonical Ltd. The developers use the year and month of the release as a version number. For eg. ubuntu 20.04 is released in the year 2020 and in the month of April.
Knowing your Ubuntu version comes in handy when you are troubleshooting the problems and installing or updating software packages in your system. In this tutorial, we will check how to know your ubuntu version.
Using GUI to know your ubuntu version
If you are using the Desktop version of the operating system. Then go to the Setting, find About you will find the information about your system where you can see the ubuntu version.
Here is the snapshot of the About in my system.
Using the command line to check the ubuntu version
It is quite straightforward to check your Ubuntu version from the command line. There are multiple commands which can be used to find it. Open your terminal (press Ctrl + Alt+ t)
lsb_release -a
The lsb_release command provides certain LSB (Linux Standard Base) and distribution-specific information. -a option gives all the information about LSB. For more information about the command refer to the manpage.
Command :
lsb_release -a
Output of the command :
lsb_release -d
This is the same command as the previous one but the only difference is it only displays a description of the currently installed distribution
Command :
lsb_release -d
Output of the command :
hostnamectl
The command is used to query and change the system hostname and related settings. It also shows the operating system and its version. For more information about the command refer to the manpage
Command :
hostnamectl
Output of the command :
Summary
You learned there are multiple ways to know your ubuntu versions. In this article, we have shown with the help of examples, how to check your Ubuntu version in the terminal as well as in GUI.
In case you face any problem. Don’t hesitate to comment.