Categories: Interfaces

Use lspci to view hardware on Linux

Check out the lspci command to see the hardware that Linux was able to recognize.

The lspci is useful for showing all the information about system PCI buses and the devices connected to them.

Your most common options are:

  • -v Shows detailed information about all devices.
  • -vv shows even more information about the devices.
  • -n Shows the codes of the manufacturers and devices.
  • -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 PIIXB 4 ISA (rev 08)

00: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 support for various devices. This system was implemented mainly through sysfs, udev, and d-bus.

Uirá Endy Ribeiro

Uirá Endy Ribeiro is a Software Developer and Cloud Computing Architect with a 23-year career. He has master's degrees in computer science and fifteen IT certifications and is the author of 11 books recognized in the IT world market. He is also Director at Universidade Salgado de Oliveira and Director of the Linux Professional Institute - LPI Director's Board.

Uirá Endy Ribeiro

Uirá Endy Ribeiro is a Software Developer and Cloud Computing Architect with a 23-year career. He has master's degrees in computer science and fifteen IT certifications and is the author of 11 books recognized in the IT world market. He is also Director at Universidade Salgado de Oliveira and Director of the Linux Professional Institute - LPI Director's Board.

Share
Published by
Uirá Endy Ribeiro

Recent Posts

Sudo command on Linux (privilege scale) [Basic Guide]

The sudo command on Linux executes a given command as if it were another user.…

2 years ago

SS command on Linux (investigate the network) [Basic Guide]

The ss command on Linux is extremely useful for investigating sockets, providing various information about…

2 years ago

Free Linux command (memory usage) [Basic Guide]

Free Linux command shows the amount of total memory in use and available, as well…

2 years ago

Linux while command (loop – while) [Basic Guide]

The shell has structures for testing conditions and executing certain program sequences several times (loop),…

2 years ago

Linux fstab file (disk mount setup) [Basic Guide]

The /etc/fstab file stores the configuration of which devices should be mounted and what is…

2 years ago

Netcat command on Linux (Swiss network knife) [Basic Guide]

The Netcat Command in Linux or nc is a utility used to do “almost anything”…

2 years ago

This website uses cookies.