๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

๐Ÿ–ฅ๏ธ System Information September 7, 2026 6

Linux Command: lspci

List all PCI devices

Terminal โ€” System Information
Command
$ lspci
Output
00:00.0 Host bridge: Intel Corporation 00:02.0 VGA compatible controller: NVIDIA 00:1f.2 SATA controller: Intel

lspci lists all PCI devices in the system including graphics cards, network adapters, storage controllers, USB controllers, and sound cards. PCI is the main bus connecting hardware components. lspci is essential for identifying hardware, finding correct drivers, and troubleshooting device detection issues. The -v flags provide increasing levels of detail about each device. lspci reads from the PCI configuration space, showing vendor, device, subsystem, driver, and hardware capabilities.

Syntax

lspci [OPTION]...

Key Options

  • -v โ€” Verbose โ€” show detailed info
  • -vv โ€” Very verbose
  • -nn โ€” Show vendor/device IDs
  • -k โ€” Show kernel driver in use
  • -s โ€” Show specific device by slot
  • -d โ€” Show devices by vendor:device ID

Examples

List all PCI devices

lspci

Output: 00:00.0 Host bridge: Intel Corporation 00:02.0 VGA compatible controller: NVIDIA 00:1f.2 SATA controller: Intel

Show with drivers

lspci -k

Show with IDs

lspci -nn

Output: 00:02.0 VGA [0300]: NVIDIA [10de:2504]

Pro Tips

  • lspci -nn shows vendor:device IDs in brackets. Search these online to find the correct Linux driver.
  • lspci -k shows "Kernel driver in use:" for each device. If missing, the driver is not loaded.
  • If devices show as "Unknown", update the PCI ID database: sudo update-pciids.

Learn more: Full lspci reference โ†’

Share this tip