lshw

List detailed information about hardware configurations as root user. More information: <https://manned.org/lshw>.

Install

All systems
curl cmd.cat/lshw.sh
Debian Debian
apt-get install lshw
Ubuntu
apt-get install lshw
Alpine
apk add lshw
Arch Arch Linux
pacman -S lshw
image/svg+xml Kali Linux
apt-get install lshw
CentOS
yum install lshw
Fedora
dnf install lshw
Windows (WSL2)
sudo apt-get update sudo apt-get install lshw
Raspbian
apt-get install lshw
Docker
docker run cmd.cat/lshw lshw powered by Commando

List detailed information about hardware configurations as root user. More information: <https://manned.org/lshw>.

  • Launch the GUI:
    sudo lshw -X
  • List all hardware in tabular format:
    sudo lshw -short
  • List all disks and storage controllers in tabular format:
    sudo lshw -class disk -class storage -short
  • Save all network interfaces to an HTML file:
    sudo lshw -class network -html > interfaces.html

© tl;dr; authors and contributors