How to Check Which Linux Kernel Version You’re Using

find-linux-kernel-version-number-750x242-1-5602053

Want to check which Linux kernel version your distro is running on? Well, it’s pretty easy to find out.

All you need is a working keyboard, a few fingers, and a pair of eyes. Oh, and a terminal emulator.

But before we show you the command that lets you quickly find which kernel version you’re running on, let’s consider a few reasons why you might want to check in the first place.

What Kernel Version Are You Running?

tux-penguin-current-6907749

Tux is the Linux mascot

One thing unites every Linux distro out there, from Ubuntu to Fedora, from Solus to Arch: the Linux kernel.

But what is the Linux kernel?

There are plenty of in-depth, super complex definitions which describe what the Linux kernel is in detail. But the ‘for dummies’ way to describe it is as the engine of your operating system, atop which everything else sits.

The Linux kernel is what allows everything you see on your computer to be there; it’s responsible for managing hardware resources, allocating memory, allowing processes to run, to communicate and to do what you need them to do.

New versions of the Linux kernel are released often, including bothmajor releases with new features, performance optimisations, and hardware support, and minor releases that carry critical security fixes or bug patches.

Security issues and hardware support mean it’s important to know which kernel you’re on

Sometimes (like this month, with the whole Spectre and Meltdown security issues) it can be helpful to know what version of Linux you’re running on as different security issues affect different kernel versions.

By knowing which kernel version your Linux distro is using, you’ll be better placed to tell whether you should upgrade your kernel or not (and if you do, you’ll then know how to double-check to make sure you’re in the clear).

Of course, there may be other reasons why you want to know which version of Linux you’re running. Support for new hardware is often kernel-specific too. You need to upgrade the Linux kernel to get your latest gadget or peripheral working just right.

Explanation over, lets see how to quickly find your Ubuntu kernel version number (or that of any other distro)

Find Your Linux Kernel Version in Ubuntu & Other Distros

Why Check?

find-linux-kernel-version-number-750x242-1-5602053

The quickest way to find the Linux kernel version you’re currently using is to use the command line.

Open the Terminal app from your systems application menu and run the following command:

uname -r

The uname command will instantly show you what kernel version you’re using. The output will look similar to this:

4.14.0-16-generic

In this case I can tell I’m using the Linux 4.14 kernel — but what do these numbers mean?

  • 4. – Kernel version
  • 14. – Major revision
  • 0 – Minor revision
  • –16 – Bug fix/revision detail
  • –generic — architecture/build specific

The first number is the kernel version. This number changes the least frequently. At present Linux 4.x is the current series.

The second number is the major revision. In years past an even revision number would denote a stable release, and an odd number a development release however this is no longer the case.

The third and fourth numbers relate to which minor revision and security/bug fix release you’re using.

Get more info

To get even more information about your kernel, such as whether it’s 32-bit or 64-bit, you can run the same command again, but this time add the -a flag to the end (‘a’ stands for ‘all’):

uname -a

The uname command will instantly tell you what need to know, including more details on the specific kernel version, your OS, and even the date the kernel was installed!

Are You Running the Latest Version?

How to see what the current release is

latest-linux-kernel-numbers-750x365-3812418

Check your kernel number against that of the latest mainline and stable Linux kernel releases on the following website:

Check the Latest Linux Kernel Release

Bonus Tip: Use Neofetch to check

neofetch-showing-linux-kernel-version-750x365-4752168

The uname command is my go-to suggestion for checking kernel details, but my top tip for anyone that wants to see more system info from the command line is to install Neofetch.

Neofetch gives you an organised overview of pretty much everything your system is running, including distro name, desktop shell, GTK theme, your uptime, and more.

You can install Neofetch on Ubuntu from the Ubuntu Software – no PPAs required. This app should also be available in the repos of other major Linux distros too, including Arch and Linux Mint.

Install Neofetch on Ubuntu 16.10 +

Once installed just run the neofetch command from a terminal app:

neofetch

Original Article