Back to the command reference

modprobe

SystemAdvancedReference only

Load or remove kernel modules

Name: modprobe = module probe

This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.

Description

modprobe loads or removes kernel modules intelligently, handling dependencies by loading required modules first. Configuration in /etc/modprobe.d/ sets options or blacklists modules.

Syntax

modprobe [OPTION]... MODULE

Common options

-r / --removeRemove a module
-v / --verboseShow what it does
-n / --dry-runPretend: load or unload nothing
--show-dependsShow the modules it depends on

Examples

  • $ sudo modprobe vboxdrv

    Load a module

    Explain
  • $ sudo modprobe -r pcspkr

    Unload a module

    Explain

Related