hwinfo(1)
hwinfo displays detailed information about hardware components on a Linux system.
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
| Flag | What it does |
|---|---|
--short | Show output in short format (one-line entries) |
--all | Probe for all hardware devices (default behavior) |
--cpu | Display CPU/processor information |
--disk | Display hard disk and storage device info |
--network | Display network interface information |
--gfxcard | Display graphics card information |
--sound | Display sound card information |
--usb | Display USB device information |
--pci | Display PCI device information |
--log FILE | Write output to a file instead of stdout |
--listmd | List device types available to display |
--html | Output hardware info as HTML |
Examples
Show a concise summary of all hardware in one-line format
hwinfo --shortDisplay detailed CPU information including cores, speed, and cache
hwinfo --cpuList all disk drives in short format with capacity and type
hwinfo --disk --shortShow network interface details including MAC addresses and drivers
hwinfo --networkDisplay graphics card details like model, memory, and driver info
hwinfo --gfxcardList all USB devices in compact form
hwinfo --usb --shortProbe all hardware and save complete report to a file
hwinfo --all --log hardware.txtShow available device types that can be queried
sudo hwinfo --listmd