The lspci command is used to display information about devices that are connected to the system’s PCI buses. By default, the output will list the logical slot address (typically in the format Bus:Device.Function), the device’s class (such as network controller, storage controller, input device, or bridge device), the vendor name, and the device name. Like lsusb, lspci offers a verbose mode for more detailed information about each device. For example, you can use verbose mode to identify the physical slot in which an adapter is installed.


The syntax of the lspci command is:

Listing PCI device information:

lspci command examples in Linux

lspci Command Examples

1. To list all PCI devices:

2. To Dump PCI device data in a backward-compatible machine readable form:

3. To Dump PCI device data in a machine readable form for easy parsing by scripts:

4. To Show a tree-like diagram containing all buses:

5. To display in verbose mode:

6. To be very verbose:

7. To be even more verbose:

8. To Show kernel drivers handling each device and also kernel modules capable of handling it:

9. To Show hexadecimal dump of the whole PCI configuration space:

10. To Show hexadecimal dump of the extended (4096-byte) PCI configuration space available on:

11. For bus centric view:

12. To always show PCI domain numbers:

13. To show PCI vendor and device codes as numbers instead:

14. To show PCI vendor and device codes as both numbers and names:

15. To use DNS to query the central PCI ID database if a device is not found in the local pci.ids file:

16. To reset local cache:

17. To Query the central database even for entries which are recognized locally:

18. To Show only devices in the specified domain:

19. To Show only devices with specified vendor and device ID:

20. To Use as the PCI ID list instead of /usr/share/hwdata/pci.ids:

21. To Use as the map of PCI IDâs handled by kernel modules:

22. To Invoke bus mapping mode which performs a thorough scan of all PCI devices:

23. To get the lspci version:

24. To The library supports a variety of methods to access the PCI hardware:

25. To increase the debug level: