$linuxjunkies
>

lspci(1)

List all PCI devices on the system with vendor and device information.

UbuntuDebianFedoraArch

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

FlagWhat it does
-vverbose mode; show more detailed information for each device
-vvvery verbose; display even more detailed PCI configuration data
-nshow numeric vendor/device IDs instead of names
-kshow kernel driver and module in use for each device
-mmachine-readable output format (colon-separated fields)
-tshow 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 METHODuse specified access method (auto, intel, via, etc.); for debugging
-xshow hexadecimal dump of the standard PCI configuration space
-xxxshow extended hexadecimal dump of PCI configuration space

Examples

List all PCI devices with default verbose output (device names)

lspci

Show all devices and their kernel drivers; useful for checking if hardware is recognized

lspci -k

Find NVIDIA graphics cards by filtering output

lspci | grep -i nvidia

List only Intel (vendor 8086) devices with device ID 1e10

lspci -d 8086:1e10

Display PCI devices organized as a hierarchical tree

lspci -t

Show very detailed info for device at bus 00, slot 1f, function 3

lspci -vv -s 00:1f.3

Find 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

Related commands