Back to the command reference

lspci

SystemFundamentals In simulator In real Linux

List PCI devices (graphics, network …)

Name: lspci = list PCI

You can practise it right away in the simulator, and use it in real Linux mode too.

Description

lspci lists devices on the PCI bus such as graphics, network, audio and storage controllers; -k adds the kernel driver in use, handy for driver problems.

Syntax

lspci [OPTION]...

Common options

-vVerbose
-vvEven more detail
-kShow kernel drivers
-nnAlso show vendor and device IDs (useful when looking for drivers)
-tShow the bus as a tree
-s SLOTOnly the device in a slot, e.g. -s 00:02.0

Examples

  • $ lspci | grep -i vga

    Find the graphics card

    Explain
  • $ lspci -k

    Driver used by each device

    Explain

Related