Linux Commands - Remove a module using the rmmod command

by
Jeremy Canfield |
Updated: May 25 2023
| Linux Commands articles
The following commands can be used to remove a kernel module
- modprobe
- rmmod (this article)
The lsmod command can be used to list the modules that are currently loaded into the kernel.
~]# lsmod | sort
arc4 12608 0
ata_generic 12910 0
ata_piix 35038 0
auth_rpcgss 59314 1 nfsd
bcma 51886 0
bluetooth 372944 5 bnep
. . .
The rmmod command can be used to remove a module. If no standard error is returned, the rmmod command without the -v or --verbose flag may return no output. I like to include the -v or --verbose flag just so that I get some output.
~]# rmmod bcma --verbose
Did you find this article helpful?
If so, consider buying me a coffee over at