fbpx lspci Command in Linux: View Hardware and PCI Devices | Certificação Linux

How to Use lspci to View Linux Hardware

📅 03/06/2019 ⏱ 2 min ✍️ Uira Ribeiro
Linuxcommandshow-to
How to Use lspci to View Linux Hardware
Exam Pass App — mais de 7.000 questões LPI, offline, em 5 idiomas, disponível no Android e na App Store
Available on
Google Play
Available on
App Store

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 :-)

Uira Ribeiro

Prof. Uirá Ribeiro

Chair do Board do Linux Professional Institute

After years of watching professionals waste hours on simple tasks because they didn't know the right Linux tools, I decided to teach.
Today I'm the author of most of LPI's official Learning Materials and mentor to over 14,000 certified students.

See my full story →

That was just one piece. The course teaches the whole path — from your first command to exam day.

Certificação Linux — a plataforma líder em certificações Linux no Brasil
WhatsApp