You are not logged in or registered. Please login or register to use the full functionality of this board...
Linuxcat.org
How to get a list of hardware on a linux machine - Printable Version

+- Linuxcat.org (https://www.linuxcat.org)
+-- Forum: Linux Guides and Troubleshooting (/forumdisplay.php?fid=1)
+--- Forum: Linux Guides (/forumdisplay.php?fid=2)
+--- Thread: How to get a list of hardware on a linux machine (/showthread.php?tid=1)



How to get a list of hardware on a linux machine - knifebunny - 07-07-2011 07:13 PM

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 ]