How to Use lspci to View Linux Hardware
Meet the lspci command to view the hardware that Linux was able to recognize.
lspci is useful for displaying all the information about the system's PCI buses and the devices connected to them.
Its most common options are:
- -v Shows detailed information about all devices.
- -vv Shows even more information about the devices.
- -n Shows the vendor and device codes.
- -x Shows the first 64 bytes of the PCI configuration in hexadecimal.
- -xxx Shows the entire PCI configuration in hexadecimal.
# lspci
0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
0000:00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
0000:00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 08)
0000:00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB
0000:00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 08)
The Linux Kernel has a robust hardware recognition system and supports several devices. This system was implemented mainly through sysfs, udev, and d-bus.
See how to use the lspci command with this short hands-on lesson:
Learn much more about Linux in our online course. You can enroll here with a 7-day free trial. If you already have an account, you can access it here.
Liked it? Share :-)
That was just one piece. The course teaches the whole path — from your first command to exam day.