LinuxCommandLibrary

hardinfo

Display system hardware and software information

TLDR

Start hardinfo

$ hardinfo
copy

Print report to stdout
$ hardinfo [[-r|--generate-report]]
copy

Save report to HTML file
$ hardinfo [[-r|--generate-report]] [[-f|--report-format]] html > hardinfo.html
copy

SYNOPSIS

hardinfo [-h | --help] [-v | --version] [-r | --report=FILE] [-f | --format=FORMAT] [-d | --device-tree]

PARAMETERS

-h, --help
    Show help options and exit

-v, --version
    Display version information and exit

-r, --report=FILE
    Save system info or benchmark report to FILE

-f, --format=FORMAT
    Set report format: html, plain, xml, gtp, benchmark

-d, --device-tree
    Dump hierarchical device tree information

--help-all
    Show all help options including hidden ones

DESCRIPTION

Hardinfo is a Gtk-based system profiler for Linux that provides comprehensive hardware information, device details, and benchmarking capabilities. It offers an intuitive graphical interface with tabs for Computer (CPU, memory, OS), Devices (PCI, USB, disks), Network, and Benchmarks covering CPU, FPU, cache, memory, disk, and 2D/3D graphics.

It detects and displays data from sources like lspci, lsusb, dmidecode, and kernel modules. Users can run over 150 benchmarks, compare results online, and generate detailed reports.

Command-line mode supports exporting reports in formats like HTML, XML, plain text, or GTP without launching the GUI, making it scriptable for automated hardware audits. Ideal for troubleshooting, inventory, or performance tuning on desktops, servers, and embedded systems.

CAVEATS

Requires Gtk3 and detection libs; some info needs root privileges. Benchmarks may stress hardware. No longer actively maintained upstream.

INSTALLATION

Most distros: sudo apt install hardinfo (Debian/Ubuntu), sudo dnf install hardinfo (Fedora), or from source via GitHub.

REPORT EXAMPLE

hardinfo -r report.html -f html generates browser-viewable hardware report.

HISTORY

Developed by Jorge Rodriguez in 2003 as a KSysguard frontend alternative. Evolved into standalone Gtk app; version 0.5 (2015) added modern benchmarks. Forked/maintained on GitHub post-2018; supports recent kernels/Wayland.

SEE ALSO

lshw(1), lspci(1), lsusb(1), dmidecode(8), inxi(1), hwinfo(1)

Copied to clipboard