lspci
hardware informationLinux
The lspci command is one of the most frequently used commands in Linux/Unix-like operating systems. lspci List all PCI devices
Quick Reference
Command Name:
lspci
Category:
hardware information
Platform:
Linux
Basic Usage:
lspci [options] [arguments]
Common Use Cases
Syntax
lspci [options]
Options
Option | Description |
---|---|
-v |
Be verbose (display detailed information) |
-vv |
Be very verbose (display even more details) |
-vvv |
Be extremely verbose (display everything the driver knows) |
-k |
Show kernel drivers handling each device |
-n |
Show numeric IDs (PCI vendor and device codes) |
-nn |
Show both textual and numeric IDs |
-t |
Show a tree-like diagram of the PCI bus hierarchy |
-x |
Show hexadecimal dump of the standard configuration space |
-xxx |
Show hexadecimal dump of the whole configuration space |
-b |
Show bus-centric view (addresses and IRQs as seen by the bus) |
-D |
Show PCI domain numbers |
-s [[domain]:][bus]:[device].[function] |
Show only devices in specified domain/bus/device/function |
-d [vendor]:[device] |
Show only devices with specified vendor/device ID |
-i file |
Use specified ID database instead of /usr/share/hwdata/pci.ids |
-p file |
Look up kernel modules in specified map file |
-m |
Dump PCI device data in machine-readable form |
-mm |
Dump PCI device data in machine-readable form with a single value per line |
Examples
How to Use These Examples
The examples below show common ways to use the lspci
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
lspci