Linux/Unix Command: insmod

insmod manpage

The Linux insmod command inserts a module into the kernel. It's no longer recommended for this purpose—use modprobe instead.

What 'insmod' Does

The insmod program performs a straightforward insertion of a module into the kernel. It's simple to run and it performs without a ton of sanity checking or error reporting. Originally, it made sense when you needed to insert a module and had no concern about dependencies; however, now that the Linux kernel itself links modules, the use cases for insmod decrease.

It's now recommended that you use modprobe instead, because it works through module dependencies (insmod does not) and it better manages errors and reporting.