Where Are Modules Stored in Linux?
Contents

Linux. Loadable kernel modules in Linux are loaded (and unloaded) by the modprobe command. They are located in /lib/modules or /usr/lib/modules and have had the extension . ko (“kernel object”) since version 2.6 (previous versions used the .o extension).

Where are module files stored Linux?

Kernel modules

  • A kernel module is an object file that contains code to extend the running kernel of an operating systems. …
  • Kernel modules are usually stored in the /lib/modules subdirectories. …
  • As you can see from the output above, the system has all kernel modules stored inside the /lib/modules/3.0.

How do I find out what kernel modules are installed?

Load a module

Instead, use the modprobe command followed by the kernel module name. modprobe attempts to load the module from /lib/modules/<kernel-version>/kernel/drivers/ . This command will automatically check for module dependencies and load those drivers first before loading the specified module.

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest