How to Check Ubuntu version Easy Step by Step Tutorial
The moment you log in to your Linux machine via terminal or Desktop version. The first thing you should do is to verify your Ubuntu version. Installing the right package or configuring the development environment requires this information, otherwise, it can cause issues on your machine.
Ubuntu releases the LTS version for both Desktop and Server in every two years and keeps the support of this version for 5 years. Other releases are usually supported for nine months.
In this short article, we learn how to Check the Ubuntu version via different methods – CLI(command line) and also from the Desktop (Gnome Panel). On the Ubuntu Server Or Desktop Open Terminal and execute the following command.
The output of this command:
Static hostname: myserverfix
Icon name: computer-laptop
Machine ID: a33f6cc7e3244c38a3ef14860623838e
Boot ID: a6520574665a4dea827e3e8bae3r77df1a8
Operating System: Ubuntu 16.04.6 LTS
Kernel: Linux 4.15.0-99-generic
This command gives you brief information about the Kernel version and Operating system. There is another command which works on any Linux distribution. Execute the following command in the terminal
It’s a utility that provides information about the Linux Distribution. If you want to see the only description with the Linux version just add the “-d “ parameter.
Apart from these commands, we can check the Linux Distribution using the following commands as well. “/etc/os-release” This file has information about the Linux distribution. To check the Ubuntu version execute the following command on the terminal.
The output of this command would be
VERSION=”18.04 LTS (Bionic Beaver)”
PRETTY_NAME=”Ubuntu 18.04 LTS”
There is another file which is “/etc/issue“. You can use the cat command to get the os version from it.
Now how to Check the Ubuntu version on a desktop machine. Simply follow these instructions.
- Go to Settings.
- Click on the Details Tab
- You can see the Ubuntu version installed on the system.
Conclusion – By knowing the ubuntu version we can save ourselves from so many issues, that might come due to wrong package installation on the system. If you want to learn about Linux System Permission then follow our below-mentioned article.