$linuxjunkies
>

hwinfo(1)

hwinfo displays detailed information about hardware components on a Linux system.

UbuntuDebianFedoraArch

Synopsis

hwinfo [OPTION]... [--DEVICE-TYPE]

Description

hwinfo probes the system hardware and displays comprehensive information about CPU, memory, disk drives, network cards, graphics, sound devices, and other components. It reads from multiple sources including /proc, /sys, BIOS DMI tables, and device probing to build a complete hardware inventory.

Use it to identify installed hardware, check device specifications, troubleshoot device conflicts, or generate hardware reports for documentation. The tool requires appropriate permissions; some information may be restricted for non-root users.

Common options

FlagWhat it does
--shortShow output in short format (one-line entries)
--allProbe for all hardware devices (default behavior)
--cpuDisplay CPU/processor information
--diskDisplay hard disk and storage device info
--networkDisplay network interface information
--gfxcardDisplay graphics card information
--soundDisplay sound card information
--usbDisplay USB device information
--pciDisplay PCI device information
--log FILEWrite output to a file instead of stdout
--listmdList device types available to display
--htmlOutput hardware info as HTML

Examples

Show a concise summary of all hardware in one-line format

hwinfo --short

Display detailed CPU information including cores, speed, and cache

hwinfo --cpu

List all disk drives in short format with capacity and type

hwinfo --disk --short

Show network interface details including MAC addresses and drivers

hwinfo --network

Display graphics card details like model, memory, and driver info

hwinfo --gfxcard

List all USB devices in compact form

hwinfo --usb --short

Probe all hardware and save complete report to a file

hwinfo --all --log hardware.txt

Show available device types that can be queried

sudo hwinfo --listmd

Related commands