System Info

lspci

List all PCI devices including graphics cards, network adapters, and controllers.

Synopsis

syntax
lspci [OPTION]...

Examples

List all PCI devices
lspci
Show devices with kernel drivers
lspci -k
Find graphics card
lspci | grep -i vga
Verbose with vendor/device codes
lspci -vnn

Common options

FlagDescription
-vVerbose output
-vvVery verbose
-kShow kernel drivers handling each device
-nnShow vendor and device codes

About lspci

The `lspci` command list all PCI devices including graphics cards, network adapters, and controllers. System information commands provide insight into hardware, kernel, memory, disk, and user session details.

These are typically the first tools you reach for when diagnosing system problems, capacity planning, or auditing a server's configuration. They work across most Linux distributions without additional packages.

The command accepts 4 commonly used flags shown above, though the full set of options is available in the man page (`man lspci`). The 4 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More System Info Commands

Other commands in the System Info category

Related tools