Create a nifty overview of the hardware in your computer

lshw -html > hardware.html
After the command is done, open the html file in a browser

By: flart
2009-06-04 07:14:03

1 Alternatives + Submit Alt

What Others Think

That is very cool. It would be a nice way to inventory all your computers. No more guessing whats in what!
bytor4232 · 652 weeks and 1 day ago
@bytor4232 using ssh this is easy: for host in host1 host2 host3 ... ; do ssh $host "lshw -html" > $host_hardware.html; done this will run lshw -html on each host.
bwoodacre · 652 weeks and 1 day ago
...and save the results on the local machine where you ran the for look
bwoodacre · 652 weeks and 1 day ago
noticed that CPU speed isn't correctly displayed due to power management
hoberion · 651 weeks and 4 days ago
sysreport for RHEL/Centos yields quite same results :)
Solidxnake · 651 weeks and 2 days ago
Entering the following version might give more complete results, will create the in tmp directory and will open it instantly: sudo lshw -html > /tmp/hardware.html && xdg-open /tmp/hardware.html
Sadi · 403 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: