The hwinfo is a command line tool that can be used to get details about various hardware components on a system. It provides information about CPU, RAM, disks, network interfaces, USB controllers, etc. The hwinfo was developed for openSUSE but lately was adapted for other Linux distributions such as Ubuntu, Debian, etc. The hwinfo is also available on the Raspberry Pi OS.
This tutorial demonstrates how to install hwinfo on Raspberry Pi.
Use SSH to connect to Raspberry Pi. Then run these commands to update the package lists and install hwinfo:
sudo apt update
sudo apt install -y hwinfo
Once the installation is complete, you can check version of the hwinfo with command:
hwinfo --version
Now run the hwinfo
command without any arguments to get detailed information about all hardware components:
hwinfo
The same result is provided with --all
option as well:
hwinfo --all
Use --short
option to get brief information about the hardware components:
hwinfo --short
The hwinfo also allows to display information for specific hardware component:
hwinfo --cpu
hwinfo --memory
hwinfo --disk
hwinfo --network
hwinfo --usb
If hwinfo is no longer needed, you can remove it and related dependencies with command:
sudo apt purge --autoremove -y hwinfo
Leave a Comment
Cancel reply