Forrest logo
back to the lspci tool

lspci:tldr:73424

lspci: Display drivers and modules handling each device.
$ lspci -k
try on your machine

The "lspci" command is a Linux command used to list information about all PCI buses and devices in the system. When it is used with the "-k" option, it also shows the kernel modules (drivers) that are currently associated with each device.

In more detail, the "lspci" command reads the configuration space of each PCI device on the system and displays various information about them, such as their vendor and device IDs, device class, memory and I/O regions, interrupt settings, etc. This information helps in identifying the hardware components connected to the PCI bus.

By using the "-k" option, the command additionally shows the kernel modules that are loaded and bound to each device. Kernel modules are software components, or drivers, that provide the interface between the hardware and the operating system. This information can help in troubleshooting or identifying driver issues.

Overall, "lspci -k" is a useful command for obtaining detailed information about PCI devices and the associated kernel modules in a Linux system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lspci tool