Basic Linux kernel module administration commands
Basic Linux kernel module administration commands
Linux command syntaxLinux command description
ls -R /lib/modules/$(uname -r) Command to list all modules available for a given linux system
modinfo /path/to/module.ko Display module information
insmod kernel-module-name Install a module to a running kernel. NOTE: this command does not resolve module dependencies
modprobe kernel-module-name Install a module to a running kernel inlcuding dependencies
depmod -a Rebuild module dependancy database using /lib/modules/$(uname -r)/modules.dep
insmod --force kernel-module-name Force insmod to load module even if its build for a defferent module version
modprobe -n -v kernel-module-name Display insmod commands to load module and its dependencies. Useful when modprobe gives up due to dependency problem
lsmod Display all modules currently loaded into a kernel
rmmod kernel-module-name Command to remove a module from a running kernel

Free Linux eBooks

Linux Technical Writer

LinuxCareer, Casual, Volunteer, Home Based

Do you wish to join Linuxcareer.com project and find out how to be a technical writer? We are now looking for volunteers to help us write tutorials and share them with Linux community

  • Casual work from home
  • 10 articles / year

Any active Linuxcareer.com’s author will be entitled to following benefits:

  • actively participate in Linuxcareer.com’s decision making process
  • feedback and help

APPLY

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top