Mastering lspci: List and Inspect All PCI Devices on Linux
This guide explains how to use the lspci command to display all PCI bus information, interpret its common options, and provides practical examples for listing devices, showing detailed info, and filtering by vendor, class, or connection type.
lspci: List all PCI devices
Function description
lspci command displays all PCI bus information and the connected PCI devices on the host. Modern hardware such as network cards and storage devices use the PCI bus.
Command syntax
lspci [options]Option meanings
The following options are commonly used:
-n: display PCI vendor and device codes numerically
-t: show PCI devices in a tree hierarchy
-b: bus‑centric view
-d: show only the specified vendor and device
-s: show devices on a specific bus and slot
-i: specify a PCI ID list file instead of the default
-m: output PCI information in a machine‑readable format
-v: display detailed information about PCI devices
Reference examples
Example 1
// Show all PCI bus information
# lspci
// Show detailed PCI device information
# lspci -v
// Show PCI devices in a tree structure
# lspci -t
// Show PCI device identifiers
# lspci -nExample 2
Display specific PCI device information
// Show device with vendor ID 8086 and device ID 7190
# lspci -d 8086:7190
// Show Ethernet controller details
# lspci | grep Ethernet
// Show bus, slot, and function for Ethernet device 02:01.0
# lspci -v -s 02:01.0
// Show USB device information
# lspci | grep -i usbOpen Source Linux
Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
