O'Reilly logo

Linux Utilities Cookbook by James Kent Lewis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A brief look at module commands

There are several commands that are used to manipulate the modules on your system. Note that depending on your distribution, these commands may only be run as root.

How to do it...

In the following steps, we will run the lsmod, modprobe, insmod, and modinfo commands:

  1. To see the status of the modules currently loaded on the system, run lsmod.
  2. To load a module from the current /lib/modules/<kernel name> directory, you would use the modprobe command. An example would be modprobe pcnet32.
  3. To load a module directly, use the insmod command. An example would be insmod /temp/pcnet32.ko.
  4. To display the information about a module, use the modinfo command. Try this on your system by first running lsmod to find a module and then ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required