How To Install Lshw In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

How To Install Lshw In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

lshw

List detailed information about hardware configurations as root user.

Maintainer: Ghe Rivero



Section: utils

Install lshw

  • Debian apt-get install lshw Click to copy
  • Ubuntu apt-get install lshw Click to copy
  • Alpine OS apk add lshw Click to copy
  • Arch Linux pacman -S lshw Click to copy
  • Kali Linux apt-get install lshw Click to copy
  • CentOS yum install lshw Click to copy
  • Fedora dnf install lshw Click to copy
  • Raspbian apt-get install lshw Click to copy

List detailed information about hardware configurations as root user.

How to use lshw?

Below are few example commands for lshw that you can use in the terminal.

Launch the GUI:
sudo lshw -XClick to copy
List all hardwares in tabular format:
sudo lshw -shortClick to copy
List all disks and storage controllers in tabular format:
sudo lshw -class disk -class storage -shortClick to copy
Save all network interfaces to an HTML file:
sudo lshw -class network -html > interfaces.htmlClick to copy
Install the latest version of lshw in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora and Raspbian from terminal. To install the lshw just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of lshw from the respository and install it in your computer/server.