Skip to content
Search

Modprobe

lastmod 2025-12-23created 2023-02-205 edits

modprobe is a Linux program used to add a Korean: 적재 가능 커널 모듈 (LKM) to the Linux kernel or to remove one from the kernel.

It is usually used indirectly: udev relies on modprobe to load drivers for automatically detected hardware.

Since 2014, modprobe has been distributed as part of the software package "kmod". It was previously developed as:

  • "module-init-tools" for Linux kernel version 2.6 and later
  • "modutils" used in Linux versions 2.2.x and 2.4.x

Usage

Load modules
modprobe [-a -n -v] [-C config] [-t 형태] 패턴 OR 모듈명1 모듈명2 ...
Module loading examples
sudo modprobe overlay
sudo modprobe br_netfilter
Module list
modprobe [-l] [-C config] [-t 형태] 패턴
Show configuration
modprobe [-C config] -c
Remove modules or autoclean
modprobe [-C config] -r [모듈명 ...]

Options

  • -a, --all - Also load other modules related to the module through dependencies.
  • -c, --showconfig - Show the current configuration.
  • -d, --debug - Show debugging information.
  • -h, --help - Show usage.
  • -k, --autoclean - Load autoclean modules.
  • -l, --list - Show kernel modules.
  • -n, --show - Don't actually perform the action
  • -q, --quiet - Quiet operation
  • -r, --remove - Remove modules or remove atuoclean modules.
  • -s, --syslog - Send messages to syslog.
  • -t, --type moduletype - Only look for modules of this type
  • -V, --version - Show version information.
  • -C, --config configfile - Use the specified configuration file instead of the /etc/modules.conf file.

Reload the saved module list all at once

sudo systemctl restart systemd-modules-load.service

Save the list of modules to load

See the /etc/modules-load.d/*.conf location. Just list the modules as plain text.

See also

Favorite site

author Zer0 sitemap