How to Check Ubuntu Version in Command Line

What version of Ubuntu Linux are you using, How to check ubuntu version from the command line?

In Ubuntu you can check the Ubuntu version from the command line using the lsb_release command.

To check Ubuntu version, open the command line and Type:

lsb_release -a

You will get output something similar to the following:

Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.3 LTS
Release:	16.04
Codename:	xenial

As you can see I am using Ubuntu 16.04 LTS xenial.

The /etc/issue files also contain the Ubuntu version:

cat /etc/issue
Ubuntu 16.04 LTS \n \l

Check the Ubuntu kernel version

The lsb_release does not show the kernel version. To get kernel version in Ubuntu, use the uname command.

uname -r
4.4.0-21-generic