How to Find Out | Check Linux Kernel Version on Ubuntu 18.04 | 16.04 LTS

desktop 1389979 640

Want to find out which kernel versions installed on Ubuntu? For students and new users, this post might come in handy if they want to find out the running kernel version on Linux Ubuntu.

The kernel is the core of any operating systems. Whether Windows, Mac OS or Linux, it’s the most important and core component of the operating system.

The kernel sits between the hardware and the software. It manages hardware resources and relay information to the hardware on behalf of the software running on the computer.

For example, if a software application wants to use the CD Rom drive or play music to the sound card on the computer, the kernel will find the resource needed for the application to make that happen.

This brief tutorial shows students and new users how to find out which kernel version that is installed and running on Ubuntu 18.04 | 16.04 LTS

To get started, see the options below:

Option 1: Use uname Command

The most frequently used command to find out which version of Linux kernel currently installed and running is the uname command. Simply run the uname command followed by few options to get Linux kernel details.

To do that run the commands below:

uname -srm

That should output similar line as shown below:

Linux 4.18.0-25-generic x86_64

That tells you that the kernel begin to a generic Linux distribution, a 64-bit with version # 4.18.0-25

Option 2: Use the hostnamectl Command

Another method to use to find out which kernel is installed and running with a bit of other information is the hostnamectl command. This command provides other details of the systems not available when using the first option above.

To use the hostnamectl command, simply type it:

It should show and output as below

   Static hostname: ubuntu1804
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 988794b9775a47a8b06ca2c946f449c2
           Boot ID: 2d080daabaf84f98ae733a7617ac0464
    Virtualization: oracle
  Operating System: Ubuntu 18.04.2 LTS
            Kernel: Linux 4.18.0-25-generic
      Architecture: x86-64

Again, same kernel, now you see its Architecture belongs to the 64-bit family.

Option 3: Use the /proc/version File

Both command option options above use the content of the /proc/version file to generate and display the kernel version. While using the commands is a quicker option, you can simple the content of the version file by running the commands below:

cat /proc/version

That displays the output as below:

Linux version 4.18.0-25-generic (buildd@lgw01-amd64-033) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #26~18.04.1-Ubuntu SMP Thu Jun 27 07:28:31 UTC 2019

The Kernel number 4.18.0-24 is identified as:

  • 4 – Kernel Version Number
  • 18 – Major Revision Number
  • 0 – Minor Revision Number
  • 25 – Patch Number
  • generic – Represents Generic Linux Distribution

These are some of the options available to you to find out Linux kernel versions. If you’re new or a student, these methods should come in handy.

That’s it!

Congratulations: You have successfully learned how to find which Linux kernel is installed and running on Ubuntu.

You may also like the post below:

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.