{"id":1640,"date":"2021-12-16T13:30:19","date_gmt":"2021-12-16T10:30:19","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/03\/28\/ubuntu-check-kernel-version-guide\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/03\/28\/ubuntu-check-kernel-version-guide\/"},"modified":"2021-12-16T13:30:19","modified_gmt":"2021-12-16T10:30:19","slug":"ubuntu-check-kernel-version-guide","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1640-ubuntu-check-kernel-version-guide\/","title":{"rendered":"Ubuntu: check kernel version [Guide]"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>If you use Ubuntu, at some point you may be curious what your kernel version is. Unfortunately, in Ubuntu, the developers don\u2019t tell you how to check the kernel info. In this guide, we\u2019ll show you 4 ways you can check your kernel version on Ubuntu.\u00a0<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-398219 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-check-kernel-version-guide.png\" alt=\"Ubuntu: check kernel version\" width=\"1200\" height=\"778\"\/><\/p>\n<h2>Method 1 \u2013 Uname\u00a0<\/h2>\n<p>The best and quickest way to check the kernel version on Ubuntu is with the\u00a0<strong>uname\u00a0<\/strong>command. This tool can tell you your exact kernel release version, and a lot of other valuable information as well.<\/p>\n<p>To use the\u00a0<strong>uname\u00a0<\/strong>command, you must open up a terminal window on the Ubuntu desktop. To open up a terminal window on the desktop press\u00a0<strong>Ctrl + Alt + T\u00a0<\/strong>on the keyboard. Alternatively, search for \u201cTerminal\u201d in the app menu and open it that way.\u00a0<\/p>\n<p>Once the terminal window is open, execute the\u00a0<strong>uname -a\u00a0<\/strong>command. This command will print out all system information, including your kernel version information.<\/p>\n<pre>\nuname -a\n<\/pre>\n<p>If you\u2019d prefer to just get the kernel information, instead of the kernel information, plus OS release name, and other information, you can replace the\u00a0<strong>uname -a\u00a0<\/strong>command for the\u00a0<strong>uname -srm\u00a0<\/strong>command. This command will only show you Ubuntu\u2019s kernel version.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-398219 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-check-kernel-version-guide.png\" alt=\"\" width=\"1200\" height=\"778\"\/><\/p>\n<pre>\nuname -srm\n<\/pre>\n<h3>Save output<\/h3>\n<p>Want to save the output of\u00a0<strong>uname -srm\u00a0<\/strong>to a text file for later? Here\u2019s how to do it. Re-run the <strong>uname -srm\u00a0<\/strong>command but with the\u00a0<strong>&gt;\u00a0<\/strong>symbol on the end, and point it to a new text file.<\/p>\n<pre>\nuname -srm &gt; ~\/kernel-info.txt\n<\/pre>\n<p>When the command is complete, you can take a look at the text file at any time for information on the Ubuntu kernel by making use of the\u00a0<strong>cat\u00a0<\/strong>command below.<\/p>\n<p>Note: you can also open up the \u201ckernel-info.txt\u201d in your favorite text editor to view the information instead of\u00a0<strong>cat<\/strong>.<\/p>\n<pre>\ncat ~\/kernel-info.txt\n<\/pre>\n<h2>Method 2 \u2013 Hostnamectl<\/h2>\n<p>Another way to find the Ubuntu kernel version is with the\u00a0Hostnamectltool. It\u2019s a systemd tool that allows users to find information about the system. It can be used to view your Ubuntu kernel version. Here\u2019s how.<\/p>\n<p>To view your kernel information, execute the\u00a0<strong>hostnamectl status\u00a0<\/strong>command. By executing this command, the Hostnamectl program will show you a complete readout of the hostname of your system, Operating System name, kernel info, etc.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-398205 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-check-kernel-version-guide-1.png\" alt=\"\" width=\"1200\" height=\"554\"\/><\/p>\n<pre>\nhostnamectl status\n<\/pre>\n<p>Look through the Hostnamectl output for the \u201cKernel\u201d section. Once you\u2019ve found it, the information next to it is the Ubuntu kernel information.<\/p>\n<p>Don\u2019t want to look at other information in Hostnamectl aside from the kernel version info? Use the\u00a0<strong>grep\u00a0<\/strong>command to filter out your kernel info.<\/p>\n<pre>\nhostnamectl status | grep \"Kernel:\"\n<\/pre>\n<h3>Save output<\/h3>\n<p>If you\u2019d like to save the Hostnamectl output to a text file to read later, you can do it by redirecting the command to a text file. To save the entire Hostnamectl output to a text file, execute the command below.<\/p>\n<pre>\nhostnamectl status &gt; ~\/kernel-info.txt\n<\/pre>\n<p>Alternatively, if you\u2019d like to save just the kernel section of the output, you can do so by entering the following command.<\/p>\n<pre>\nhostnamectl status | grep \"Kernel:\" &gt; ~\/kernel-info.txt\n<\/pre>\n<p>To view the kernel-info.txt file, execute the\u00a0<strong>cat\u00a0<\/strong>command below. Or, open up \u201ckernel-info.txt\u201d in your favorite GUI text editor.<\/p>\n<pre>\ncat ~\/kernel-info.txt\n<\/pre>\n<h2>Method 3 \u2013 \/proc\/version<\/h2>\n<p>The third way of viewing kernel information on Ubuntu is with the <code>\/proc\/version<\/code> file. This file has tons of info to look at. To take a look at it, you\u2019ll need to use the\u00a0<strong>cat\u00a0<\/strong>command below.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-398211 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-check-kernel-version-guide-2.png\" alt=\"\" width=\"1200\" height=\"334\"\/><\/p>\n<pre>\ncat \/proc\/version\n<\/pre>\n<p>In the\u00a0<strong>cat\u00a0<\/strong>output, locate \u201cLinux version.\u201d Next to the \u201cLinux version\u201d section of the text file is your Ubuntu kernel version.\u00a0<\/p>\n<h3>Save output<\/h3>\n<p>To save the output of <code>\/proc\/version<\/code> to a text file for later, redirect the\u00a0<strong>cat \/proc\/version\u00a0<\/strong>command to a text file in your home folder.<\/p>\n<pre>\ncat \/proc\/version &gt; ~\/kernel-info.txt\n<\/pre>\n<p>To read the text file, use the\u00a0<strong>cat\u00a0<\/strong>command on \u201ckernel-info.txt\u201d, or open up \u201ckernel-info.txt\u201d in your favorite GUI text editor.<\/p>\n<h2>Method 4 \u2013 Neofetch<\/h2>\n<p>The fourth way of viewing kernel information on Ubuntu Linux is with the Neofetch system information tool. It\u2019s a powerful tool that scans your Ubuntu system for tons of information and prints it out in a nice output, next to your OS logo.\u00a0<\/p>\n<p>To get started with Neofetch, you must install the program on your computer. To install it, open up a terminal window by pressing\u00a0<strong>Ctrl + Alt + T\u00a0<\/strong>on the keyboard. Then, enter the command below.<\/p>\n<pre>\nsudo apt install neofetch\n<\/pre>\n<p>Once the Neofetch application is installed on your Ubuntu PC, execute the\u00a0<strong>neofetch\u00a0<\/strong>command in a terminal. Keep in mind that the output may take a couple of seconds, as the program needs to collect the information.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-398207 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-check-kernel-version-guide-4.png\" alt=\"\" width=\"1200\" height=\"626\"\/><\/p>\n<pre>\nneofetch\n<\/pre>\n<p>After executing the\u00a0<strong>neofetch\u00a0<\/strong>command, look through the output for the \u201cKernel\u201d section. Next to \u201cKernel,\u201d you\u2019ll see your Ubuntu kernel version.\u00a0<\/p>\n<h3>Save output<\/h3>\n<p>If you\u2019d like to save the Neofetch terminal output to a text file to read for later, generate the output but this time, redirect it to a text file rather than allowing it to print on the screen.<\/p>\n<pre>\nneofetch &gt; ~\/kernel-info.txt\n<\/pre>\n<p>You can view the Neofetch output in the \u201ckernel-info.txt\u201d text file at any time by executing the\u00a0<strong>cat\u00a0<\/strong>command below, or, by opening it up in your favorite text editor.<\/p>\n<pre>\ncat ~\/kernel-info.txt\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles If you use Ubuntu, at some point you may be curious what your kernel version is. Unfortunately, in Ubuntu, the developers don\u2019t tell you how to check the kernel info. In this guide, we\u2019ll show you 4 ways you can check your kernel version on Ubuntu.\u00a0 Method 1 \u2013 Uname\u00a0 The best and &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1641,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1640"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1640"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1640\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1641"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}