🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

lspci Command

Intermediate System Information man(1)

List all PCI devices

👁 11 views 📅 Updated: Mar 15, 2026
SYNTAX
lspci [OPTION]...

What Does lspci Do?

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.

Options & Flags

OptionDescriptionExample
-v Verbose — show detailed info lspci -v
-vv Very verbose lspci -vv
-nn Show vendor/device IDs lspci -nn
-k Show kernel driver in use lspci -k
-s Show specific device by slot lspci -s 00:1f.2 -v
-d Show devices by vendor:device ID lspci -d 8086:

Practical Examples

#1 List all PCI devices

Shows all PCI devices with one line each.
$ lspci
Output: 00:00.0 Host bridge: Intel Corporation 00:02.0 VGA compatible controller: NVIDIA 00:1f.2 SATA controller: Intel

#2 Show with drivers

Shows which kernel driver is loaded for each device.
$ lspci -k

#3 Show with IDs

Shows vendor:device IDs in brackets — useful for finding drivers online.
$ lspci -nn
Output: 00:02.0 VGA [0300]: NVIDIA [10de:2504]

#4 Find GPU

Shows graphics card(s) in the system.
$ lspci | grep -i vga
Output: 00:02.0 VGA compatible controller: NVIDIA GeForce RTX 3080

#5 Find network card

Shows network interface hardware.
$ lspci | grep -i net

#6 Detailed device info

Shows verbose information about a specific PCI device.
$ lspci -v -s 00:02.0

Tips & Best Practices

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

Frequently Asked Questions

How do I check what GPU I have?
lspci | grep -i vga shows the graphics card. Use lspci -v -s SLOT for details.
How do I find what driver a device uses?
lspci -k shows the kernel driver in use for each device. Or lspci -nn to get IDs for searching online.
Why does my device show as Unknown?
The PCI ID database may be outdated. Run sudo update-pciids to refresh it.

Master Linux with Professional eBooks

Curated IT eBooks covering Linux, DevOps, Cloud, and more

Browse Books →