cmdxray / commands / lspci

What does lspci do?

list all PCI devices.

▸ Explain your own lspci command →

lspci examples, explained

$ lspci

  • lspcilist all PCI devices

$ lspci -v

  • lspcilist all PCI devices
  • -vverbose — more detail per device (repeat for more)

$ lspci -nnk

  • lspcilist all PCI devices
  • -nshow numeric vendor/device IDs instead of names
  • -nshow numeric vendor/device IDs instead of names
  • -kshow the kernel driver and modules handling each device

lspci flags & options

-vverbose — more detail per device (repeat for more)
-nshow numeric vendor/device IDs instead of names
-kshow the kernel driver and modules handling each device
-mmachine-readable output
-tshow devices as a bus tree
-sselect a device by [[[[domain:]bus:]slot][.func]]
-dselect devices by [vendor]:[device] ID
-xdump the configuration space in hex

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.