Gentoo Wiki


The lspci tool is used to display information about all of the PCI buses on the system and all devices connected to them.

The PCI Utilities contain a list of known vendors and devices (used for displaying vendor/device names instead of the ID numbers reported by the devices themselves). The list is maintained separately by the PCI ID Database project. Use the update-pciids tool to update the PCI ID Database.



The most common use case for lspci is listing your hardware. Using just lspci the utility will give the PCI bus location and a description from the pciids database. If the description given doesn't give you the information you need, the next most useful information is the pciid. You can find the pciid of your devices by running lspci -nn, or for more verbose information, lspci -vnn.


The lspci tool uses information provided by the sysfs interface under /sys/bus/pci/devices/, which is organized into user friendly output.


Older versions of this tool may be trivial and make use of the /proc filesystem, producing output provided by the now deprecated /proc/pci interface. The lspci utility is part of the sys-apps/pciutils package. Also included in that package is the setpci utility.

See also

See the man page or the PCI Utilities home page for more information.

Retrieved from ""

Last modified: Thu, 04 Sep 2008 00:17:00 +0000 Hits: 943