411 REFERENCE · Wikibooks
Guide to Unix/Commands/Kernel Commands
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
lsmod
lsmod lists the modules loaded by the Linux kernel.
Links:
lsmod, manpages.ubuntu.com
modprobe
modprobe loads a Linux kernel module. You can specify only the name of the module, and modprobe will load it from the correct location and also load any dependent modules.
Many modules load automatically. For example, Linux loads a USB keyboard module when a USB keyboard is attached. It also loads the base USB modules as dependencies. Some modules must be loaded manually, and "modprobe" is the easiest way to do this.
Links:
modprobe, manpages.ubuntu.com
sysctl
sysctl sets a parameter to change the behavior of the kernel. The available parameters vary by kernel, so check the man page for sysctl in your distribution.
Examples:
Check the setting for the "vm.swapencrypt.enable" parameter:
$ sysctl vm.swapencrypt.enable
vm.swapencrypt.enable=0
Root can set the parameter to 1.
$ sysctl vm.swapencrypt.enable=1
vm.swapencrypt.enable: 0 -> 1
Links:
sysctl, freebsd.org
sysctl, manpages.ubuntu.com