How to Check Ubuntu version Easy Step by Step Tutorial 2020

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.

 

hostnamectl

The output of this command:

Static hostname: myserverfix

Icon name: computer-laptop

Chassis: laptop

Machine ID: a33f6cc7e3244c38a3ef14860623838e

Boot ID: a6520574665a4dea827e3e8bae3r77df1a8

Operating System: Ubuntu 16.04.6 LTS

Kernel: Linux 4.15.0-99-generic

Architecture: x86-64

 

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

 

lsb_release                 

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.

 

cat /etc/os-release

The output of this command would be

 

NAME=”Ubuntu”

VERSION=”18.04 LTS (Bionic Beaver)”

ID=ubuntu

ID_LIKE=debian

PRETTY_NAME=”Ubuntu 18.04 LTS”

VERSION_ID=”18.04″

HOME_URL=”https://www.ubuntu.com/”

SUPPORT_URL=”https://help.ubuntu.com/”

BUG_REPORT_URL=”https://bugs.launchpad.net/ubuntu/”

PRIVACY_POLICY_URL=”https://www.ubuntu.com/legal/terms-and-policies/privacy-policy”

VERSION_CODENAME=bionic

UBUNTU_CODENAME=bionic

 

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.

  1. Go to Settings.
  2. Click on the Details Tab
  3. 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.

Chmod 777 – What Does this means ?