lspci(1)
List all PCI devices on the system with vendor and device information.
Synopsis
lspci [OPTION]... [FILTER]...Description
lspci displays detailed information about all PCI buses and devices connected to the system. It reads the system's PCI configuration space and shows vendor IDs, device IDs, driver information, and hardware capabilities. By default, output is sorted by bus, slot, and function numbers.
The command is useful for identifying hardware components, checking driver assignments, diagnosing hardware issues, and verifying device support. Root or appropriate permissions may be required for detailed information on some systems.
Common options
| Flag | What it does |
|---|---|
-v | verbose mode; show more detailed information for each device |
-vv | very verbose; display even more detailed PCI configuration data |
-n | show numeric vendor/device IDs instead of names |
-k | show kernel driver and module in use for each device |
-m | machine-readable output format (colon-separated fields) |
-t | show devices as a tree structure (bus hierarchy) |
-s [[BUS]:][SLOT][.FUNC] | display only devices matching the specified bus, slot, and function |
-d [VENDOR]:[DEVICE] | show only devices with matching vendor and device IDs (hex format) |
-A METHOD | use specified access method (auto, intel, via, etc.); for debugging |
-x | show hexadecimal dump of the standard PCI configuration space |
-xxx | show extended hexadecimal dump of PCI configuration space |
Examples
List all PCI devices with default verbose output (device names)
lspciShow all devices and their kernel drivers; useful for checking if hardware is recognized
lspci -kFind NVIDIA graphics cards by filtering output
lspci | grep -i nvidiaList only Intel (vendor 8086) devices with device ID 1e10
lspci -d 8086:1e10Display PCI devices organized as a hierarchical tree
lspci -tShow very detailed info for device at bus 00, slot 1f, function 3
lspci -vv -s 00:1f.3Find all graphics devices (class 0300) using numeric IDs
lspci -n | grep 'Class 0300'Show first 10 devices in machine-readable format for parsing
lspci -m | head -10