Linuxcat.org

Full Version: How to get a list of hardware on a linux machine
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
You can list the hardware components of a Linux based machine easily with lshw.

First you will have to download the rpm:

Code:
wget http://pkgs.repoforge.org/lshw/


Once you have downloaded it you can run the file:

Code:
rpm -Uvh lshw-2.11-1.el5.rf.x86_64.rpm


Now that it is installed you can run the command:

Code:
lshw


This will display a detailed outline of what hardware you are running.

More info:

lshw - list hardware

Synopsis

lshw [ -version ]

lshw [ -help ]

lshw [ -X ]

lshw [ -html | -short | -xml | -businfo ] [ -class class ... ] [ -disable test ... ] [ -enable test ... ] [ -sanitize ] [ -numeric ] [ -quiet ]
Reference URL's