{"id":8283,"date":"2021-07-15T10:32:04","date_gmt":"2021-07-15T10:32:04","guid":{"rendered":"https:\/\/linuxways.net\/?p=8283"},"modified":"2021-07-15T10:32:04","modified_gmt":"2021-07-15T10:32:04","slug":"rmmod-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/rmmod-command-in-linux\/","title":{"rendered":"Rmmod Command in Linux"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>rmmod command is used to remove modules from the Linux Kernel. As well as modprobe, rmmod is a part of kmod.<\/p>\n<p>But in most cases, you should use modprobe -r instead of rmmod because it has a stronger impact without any dependencies.<\/p>\n<p>This article will show you how to use the rmmod command in Linux as we go through below.<\/p>\n<h2>The syntax of rmmod command<\/h2>\n<p>To remove a Linux kernel module, run <strong>rmmod <\/strong>provided you are root user.<\/p>\n<pre>$ rmmod [options] module_name<\/pre>\n<p><strong>[options]<\/strong><\/p>\n<p><strong>-v, &#8211;verbose <\/strong> show information<\/p>\n<p><strong>-f, &#8211;force<\/strong> remove modules that is being used or not designer to be removed<\/p>\n<p><strong>-w, &#8211;wait<\/strong> isolate module and wait until module is longer in use<\/p>\n<p><strong>-s, &#8211;syslog <\/strong> send errors to syslog instead of to the terminal<\/p>\n<p><strong>-V, &#8211;version <\/strong> show rmmod\u2019s version information, and exit<\/p>\n<p>You can use lsmod command to check which modules are already loaded.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1568\" height=\"798\" class=\"wp-image-8284\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-363.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-363.png 1568w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-363-300x153.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-363-1024x521.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-363-768x391.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-363-1536x782.png 1536w\" sizes=\"auto, (max-width: 1568px) 100vw, 1568px\" \/><\/p>\n<p>Now, I will try to remove <strong>aesni_intel <\/strong>module by rmmod:<\/p>\n<pre>$ sudo rmmod -f aesni_intel<\/pre>\n<p>Use the lsmod command to check if <strong>nfit<\/strong> is removed:<\/p>\n<pre>$ lsmod | grep aesni_intel<\/pre>\n<p>If <strong>aesni_intel <\/strong>is removed, nothing will show up anymore:<\/p>\n<p>For example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1332\" height=\"150\" class=\"wp-image-8285\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-364.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-364.png 1332w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-364-300x34.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-364-1024x115.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-364-768x86.png 768w\" sizes=\"auto, (max-width: 1332px) 100vw, 1332px\" \/><\/p>\n<p><strong>rmmod<\/strong> also accepts deleting multiple modules:<\/p>\n<pre>$ rmmod module_name1 module_name2<\/pre>\n<h2>Conclusion<\/h2>\n<p>You\u2019ve already gone through the details of how to remove modules by rmmod from the Linux kernel.<\/p>\n<p>Thanks for reading.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction rmmod command is used to remove modules from the Linux Kernel. As well as modprobe, rmmod is a part of kmod. But in most cases, you should&hellip;<\/p>","protected":false},"author":1,"featured_media":8425,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,5,83,165,2],"tags":[417],"class_list":["post-8283","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-rmmod-command"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8283","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=8283"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8283\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/8425"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=8283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=8283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=8283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}