lspci
List PCI devices with LSPCI command. Explore verbose output, kernel drivers, and bus hierarchy. Free command-line utility for system information.
LSPCI Command
LSPCI Command Overview
The lspci
command is a powerful utility for Linux
systems that allows you to list all PCI devices installed in your
computer. It provides detailed information about hardware components
connected via the PCI bus, which is crucial for system diagnostics,
driver management, and hardware identification. Understanding the
output of lspci
can help you troubleshoot hardware
issues and ensure your system is configured correctly.
LSPCI Command Cheat-Sheet
Command | Description |
---|---|
lspci |
List all PCI devices in the system. This is the basic command to get an overview of your PCI hardware. |
lspci -v |
List all PCI devices with verbose output. This option provides more detailed information, including vendor and device IDs, subsystem IDs, and other configuration details. |
lspci -vv |
List all PCI devices with very verbose output. This offers the most comprehensive details, including device capabilities, IRQ settings, and ASPM (Active State Power Management) configurations. |
lspci -s <bus_address> |
Display information for a specific PCI device using its bus address. This is useful when you need to pinpoint details for a particular component. |
lspci -k |
Show the kernel driver currently in use for each PCI device. This is essential for understanding which drivers are managing your hardware. |
lspci -n |
Show numeric IDs for vendor and device instead of their human-readable names. This can be helpful for scripting or when name resolution fails. |
lspci -nn |
Show numeric IDs for vendor, device, subsystem vendor, and subsystem device. This provides a more complete numeric identification of devices and their subsystems. |
lspci -t |
Display a tree-like diagram of the PCI bus hierarchy. This visualization helps understand how devices are connected and organized within the system. |
lspci -D |
Show only PCI devices that are not behind a bridge. This can help filter out devices that are indirectly connected. |
lspci -H1 |
Show device numbers in hexadecimal format instead of decimal. This is often how hardware addresses are represented in technical documentation. |
lspci -x |
Show a hex dump of the PCI configuration space for each device. This provides low-level details about the device's configuration registers. |
Understanding PCI Devices
PCI (Peripheral Component Interconnect) is a standard bus for
connecting hardware devices in a computer. Devices like graphics
cards, network adapters, sound cards, and storage controllers often
utilize the PCI interface. The lspci
command is your
primary tool for inspecting these components from the command line.