lspci: List PCI Devices in Linux

lspci shows PCI buses and devices detected by Linux. It is useful for identifying network adapters, storage controllers, graphics devices, USB controllers, and other PCI hardware.

Common commands

lspci
lspci -v
lspci -vv
lspci -nn
lspci -k
  • -v and -vv show increasing detail.
  • -nn includes numeric vendor and device IDs.
  • -k shows the kernel driver in use and available modules.

Filter a device

lspci -d 8086:

This example filters devices by vendor ID. Use lspci -nn first if you need to discover the IDs.

Some detailed configuration-space reads require root privileges. For troubleshooting a device-driver problem, lspci -nnk is often a good starting point.

Leave a Comment