insmod

insmod

The insmod command is a Linux command that can be used to load kernel modules into the kernel. Kernel modules are pieces of code that can be added to the kernel to provide additional functionality.

Here are some examples of how to use the insmod command:

# To load the kernel module `module.ko`:
insmod module.ko

# To load the kernel module `module.ko` and keep it loaded after the system is rebooted:
insmod -k module.ko

# To load the kernel module `module.ko` and be verbose:
insmod -v module.ko

The insmod command is a powerful tool that can be used to load kernel modules into the kernel. It is a simple command to use, but it can be very effective.

help

insmod [options] module

Load a kernel module.

Options:

-f, --force            force loading of module even if already loaded
-k, --keep            keep module loaded after reboot
-v, --verbose          print verbose information
-q, --quiet           suppress most messages
-h, --help             show this help message

For more information, see the insmod man page.

breakdown

Last updated