{"id":9671,"date":"2021-09-01T17:51:06","date_gmt":"2021-09-01T17:51:06","guid":{"rendered":"https:\/\/linuxways.net\/?p=9671"},"modified":"2021-09-01T17:51:06","modified_gmt":"2021-09-01T17:51:06","slug":"how-to-list-loaded-kernel-module-using-lsmod-command","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/how-to-list-loaded-kernel-module-using-lsmod-command\/","title":{"rendered":"How to List Loaded Kernel Module Using Lsmod Command"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>The lsmod command is used to display loaded kernel modules. Kernel modules are code snippets that can be loaded or unloaded to the kernel on demand.<\/p>\n<p>If you want to load modules, let\u2019s use the modprobe command. The modules are fully listed in \/etc\/modules-load.d\/&lt;program&gt;.conf.<\/p>\n<p>We will see how to list loaded kernel modules using lsmod command as we go through below.<\/p>\n<h2>lsmod command<\/h2>\n<pre>$ lsmod<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1058\" height=\"573\" class=\"wp-image-9672\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-531.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-531.png 1058w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-531-300x162.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-531-1024x555.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-531-768x416.png 768w\" sizes=\"auto, (max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p>Explained:<\/p>\n<p><strong>1st column<\/strong>: the names of loaded modules<\/p>\n<p><strong>2nd column<\/strong>: the memory capacity of each module<\/p>\n<p><strong>3rd column<\/strong>: the total number of uses and optionally the name of the module<\/p>\n<p>You can use another way to search a specific module by the grep command. For example, I want to search a module named \u201c<strong>xor<\/strong>\u201d:<\/p>\n<pre>$ lsmod | grep xor<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1061\" height=\"67\" class=\"wp-image-9673\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-532.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-532.png 1061w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-532-300x19.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-532-1024x65.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-532-768x48.png 768w\" sizes=\"auto, (max-width: 1061px) 100vw, 1061px\" \/><\/p>\n<p>To get more information about kernel modules, let\u2019s use the modinfo command. For example:<\/p>\n<pre>$ sudo modinfo xor<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1058\" height=\"569\" class=\"wp-image-9674\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-533.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-533.png 1058w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-533-300x161.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-533-1024x551.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-533-768x413.png 768w\" sizes=\"auto, (max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>You have just seen the tutorial of how to list loaded kernel modules using lsmod command.<\/p>\n<p>Thanks for reading.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction The lsmod command is used to display loaded kernel modules. Kernel modules are code snippets that can be loaded or unloaded to the kernel on demand. If&hellip;<\/p>","protected":false},"author":1,"featured_media":9764,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,5,83,165,2],"tags":[494,510],"class_list":["post-9671","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-debian","category-mint","category-opensuse","category-red-hat","category-ubuntu","tag-kernel-modules","tag-lsmod-command"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9671","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=9671"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9671\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/9764"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=9671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=9671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=9671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}