Skip to content

Linux Kernel Modules

Use the lsmod and modprobe commands to install features on your Linux

lsmod utility

O lsmod is a simple utility that formats the contents of the directory /proc/modules, showing the Kernel modules that are loaded into memory.

$ lsmod

Module Size Used by

tun 20151 2

ipv6 344169 22

binfmt_misc 7359 1

crc32c_intel 14455

0 microcode 12859 0

ext4 509228 2

crc16 & nbsp; 1691 1 ext4

jbd2 104528 1 ext4

mbcache 7966 1 ext4

Modprobe utility

Modprobe adds or removes a module in the Linux Kernel. It searches for modules in the directory /lib/modules/kernel_version. These modules can be device drivers, support for file systems or even specific functions, such as encryption.

Além From the module name, modprobe accepts parameters that can be passed to Kernel for the correct functioning of the device or functionality.

# modprobe ipv6

Load the IPv6 support module.

# modprobe —r ipv6

Removes the IPv6 support module.