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.
To check the version of Ubuntu that you are running, fire up a terminal and type:
lsb_release -aYou will get something like:
That's all the information you need to pinpoint what version of the operating system you are running.
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:
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:
We hope this Ubuntu tutorial has been helpful.