{"id":15620,"date":"2022-02-23T18:55:45","date_gmt":"2022-02-23T18:55:45","guid":{"rendered":"https:\/\/linuxways.net\/?p=15620"},"modified":"2022-02-23T18:55:45","modified_gmt":"2022-02-23T18:55:45","slug":"how-to-check-kernel-version-in-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-check-kernel-version-in-ubuntu-20-04\/","title":{"rendered":"How to Check Kernel Version in Ubuntu 20.04"},"content":{"rendered":"<p>A kernel is a computer program and it provides an interface between software and hardware of a computer system. One of the core responsibilities of Kernel is to pass commands or instructions from applications to the underlying hardware of the CPU and return the result. You can read more about the kernel on the <a href=\"https:\/\/simple.wikipedia.org\/wiki\/Kernel_(computer_science)\">Wikipedia <\/a>page.<\/p>\n<p>In today\u2019s tutorial, I am focusing on several ways of checking the kernel version in Ubuntu 20.04.<\/p>\n<p>Let\u2019s begin!<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Ubuntu 20.04 machine<\/li>\n<li>sudo privileges<\/li>\n<\/ul>\n<h2>Checking Kernel Version in Ubuntu 20.04<\/h2>\n<h3>Method # 1: Using uname command<\/h3>\n<p>Uname prints the system information including operating system name, kernel release and version etc.<\/p>\n<p>Execute the uname command with -r option,<\/p>\n<pre>uname -r<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"860\" height=\"105\" class=\"wp-image-15621\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-706.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-706.png 860w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-706-300x37.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-706-768x94.png 768w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/p>\n<h2>Method # 2: Using hostnamectl command<\/h2>\n<p>Execute the following and look for the \u2018Kernel\u2019 as shown below in the screenshot,<\/p>\n<pre>hostnamectl<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"254\" class=\"wp-image-15622\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-707.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-707.png 904w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-707-300x84.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-707-768x216.png 768w\" sizes=\"auto, (max-width: 904px) 100vw, 904px\" \/><\/p>\n<h3>Method # 3: Using \/proc\/version file<\/h3>\n<p>You can check the kernel version by viewing the content of the\/proc\/version file. Execute the following,<\/p>\n<pre>cat \/proc\/version<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1779\" height=\"128\" class=\"wp-image-15623\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-708.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-708.png 1779w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-708-300x22.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-708-1024x74.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-708-768x55.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-708-1536x111.png 1536w\" sizes=\"auto, (max-width: 1779px) 100vw, 1779px\" \/><\/p>\n<h3>Method # 4: Using dmesg command<\/h3>\n<p>Dmesg command is used to print kernel related messages on the terminal.<\/p>\n<p>Run the dmesg command along with grep to extract the kernel version from the output.<\/p>\n<pre>sudo dmesg | grep -i linux<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1835\" height=\"415\" class=\"wp-image-15624\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-3.jpeg\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-3.jpeg 1835w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-3-300x68.jpeg 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-3-1024x232.jpeg 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-3-768x174.jpeg 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-3-1536x347.jpeg 1536w\" sizes=\"auto, (max-width: 1835px) 100vw, 1835px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>That\u2019s all for this guide. See you again in the next post.<\/p>\n<p>If you are interested in updating your kernel in Linux Mint 20, follow this <a href=\"https:\/\/linuxways.net\/de\/mint\/how-to-update-kernel-in-linux-mint-20\/\">article<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>A kernel is a computer program and it provides an interface between software and hardware of a computer system. One of the core responsibilities of Kernel is to&hellip;<\/p>","protected":false},"author":1,"featured_media":15641,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[916,100],"class_list":["post-15620","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-kernel","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/15620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=15620"}],"version-history":[{"count":1,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/15620\/revisions"}],"predecessor-version":[{"id":15639,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/15620\/revisions\/15639"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/15641"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=15620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=15620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=15620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}