How Do I List All Drivers in Linux?
Contents

You can use the lsmod command to get the status of loaded modules / devices drivers in the Linux Kernel. For a specific device, you can use dmesg |grep to get the details too.

How do you get a list of active drivers that are statically built into the Linux kernel?

Try find /sys/module -name refcnt -printf ‘n%p: ‘ -exec cat {} ; to see which are being used. Under many modules is a parameters directory containing the parameters that can be viewed and modified from user-space. In the source this is generally a call to a module_param macro. For example, see kernel/printk.

How do I list all devices in Linux?

The best way to list anything in Linux is to remember the following ls commands:

  1. ls: List files in the file system.
  2. lsblk: List block devices (for example, the drives).
  3. lspci: List PCI devices.
  4. lsusb: List USB devices.
  5. lsdev: List all devices.
Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest