Check Ubuntu version from the Command Line

In this tutorial, you will learn how to check your Ubuntu version from the command line. To get the version of Ubuntu or the kernel that is running is quite a simple task when using the terminal. Especially on an Ubuntu server where you may only interact with the system through a terminal, it may be easy to lose track of which version of the operating system is running. The version of the kernel which is running may also be obscure since you rarely need that sort of information.

Whatever your interest in knowing these versions, you will find out how to check them after completing the tutorial below.

How to check Ubuntu version from the command line

To check the version of Ubuntu that you are running, fire up a terminal and type:

lsb_release -a

You will get something like:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.02 LTS
Release: 10.04
Codename: lucid

That's all the information you need to pinpoint what version of the operating system you are running.

How to check Linux kernel version from the command line

To check the version of the Linux kernel that you are using, simply type the following in a terminal:

uname -r

Expect to see a result like:

2.6.22.16

This is the version number of the current Linux kernel which is running. If you want some more information you can also type:

uname -a

This will list some more information including the processor type:

Linux server 2.6.22.16 #1 SMP Sun Jul 25 21:32:42 UTC 2010 i686 GNU/Linux

We hope this Ubuntu tutorial has been helpful.

Thank Tutorial Arena for This Tutorial.
Show your appreciation with a +1...