lspci
Linux · System · reference only
What it does
Lists the devices connected to the PCI bus: graphics card, network, disk controllers, and so on.
Syntax
lspci [opciones]
Options and parameters
-vShows detailed information for each device.
-kShows the kernel driver each device uses.
-nnShows numeric IDs next to the names.
-s ranuraShows only the device in that slot, for example 00:02.0.
-tShows the devices as a tree.
-d fabricante:modeloShows only the devices with those IDs.
Usage examples
lspciLists all PCI devices.
lspci -kShows which driver each device uses, useful when something does not work.
lspci -nn | grep -i vgaLooks for the graphics card with its IDs.
lspci -s 00:02.0 -vShows the details of one specific device.
Notes and common mistakes
- It belongs to the pciutils package.
- With sudo it shows more detail on some devices.