Linux Hardware Commands: lscpu, lsusb, and lspci

This article explains how to inspect and inventory system hardware on the Linux operating system using three essential terminal commands: lscpu, lspci, and lsusb. Together, these utilities allow system administrators and users to identify processor architecture, internal PCI-connected components, and external or internal USB peripherals directly from the command line without installing third-party tools.

The lscpu Command: Inspecting the Processor

The lscpu command gathers CPU architecture information from sysfs and /proc/cpuinfo and outputs it in a clean, human-readable format. It is the primary tool for checking the capabilities and topology of your system's processor.

What lscpu Displays:

Useful Usage:


The lspci Command: Identifying PCI Devices

The lspci command queries the PCI bus to display information about all connected devices and controllers on the motherboard. Because modern motherboards use PCI and PCI Express (PCIe) for most high-bandwidth connections, this command reveals most internal hardware.

What lspci Displays:

Useful Usage:


The lsusb Command: Identifying USB Peripherals

The lsusb command interrogates the USB subsystem to list all USB buses and the devices attached to them. This includes external peripherals connected to physical ports as well as internal components routed over USB internally, such as integrated webcams, Bluetooth adapters, and fingerprint readers.

What lsusb Displays:

Useful Usage: