System and processes

The rmmod command

Unloads a kernel module. With -f it forces even if in use.

Syntax

rmmod [-f] <modulo>

Most useful options

-fForces the unload

Copy-ready examples

$ modprobe btrfsLoad it first
$ rmmod btrfsUnload it

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • You cannot unload a module in use unless you force it with -f.

Related commands

FAQ

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course