jump to navigation

Find Hardware Specs (Details) on your Computer February 18, 2007

Posted by Carthik in commands, snippets, ubuntu.
trackback

I stumbled upon the nifty “lshw” tool today. lshw lists your hardware. Try it now:
$sudo lshw

You can get specific details by using the -C flag:
$sudo lshw -C disk
will list all you hard disks.

It create an html page with your hardware details if you do a:
$sudo lshw -html > your-file-name.html

I generated one for my laptop and put it up for future reference
. Now I have an answer to the question, “what network adapter do you have, or what wireless driver are you using?”

I know, this is something probably all of you know already. I just found out about this little tool today. I expect this info might be useful for those of you just learning the ropes, like me.

Comments»

1. Mikkel Høgh - February 18, 2007

Oh, if only I’d known about this about a month ago, where I spent hours trying to find out what MHz my current RAM were running at so I could get some that matched….

2. Michel Leunen - February 18, 2007

The possibility to create an html file is very handy. I didn’t know this utility. Thanks.

3. Stoffe - February 18, 2007

Thanks, good tip. Also, maybe a good debaday entry?

4. beanpicks - February 18, 2007

Thanks a lot for helping me know this wonderful tool. Have linked you in my site

Arun
http://www.arunma.com

5. Beanpicks - February 18, 2007

lshw - Hardware details on Ubuntu/Linux

This is a wonderful tool for Linux users. Know all your hardware details with this superb tool called  “lshw”
Try it now:
$sudo lshw
You can get specific details by using the -C flag:
$sudo lshw -C disk
will list all you hard disks.
To create an h…

6. Sohum - February 18, 2007

Well, this person didn’t know about it.
Thanks muchly!

7. towsonu2003 - February 18, 2007

I didn’t know about the html option. This was a great tip :) Thanks a lot!!

8. christooss - February 18, 2007

Thanks man. This is great tip

9. Dave Morley - February 18, 2007

Dude you just published your ip config and mac address for the ip config to the world. Not such a strong security tip. But in fairness a great tip for a private html page. ;)

10. mpt - February 18, 2007

I think that if there’s anything you can tell from lshw that you can’t tell from the Device Manager, that’s a bug worth reporting about the Device Manager.

11. Darko Beta - February 18, 2007

Awesome tip! Very useful–thanks.

12. shorty114 - February 18, 2007

Nice tip. Should make support easier.

13. tab - February 18, 2007

A+ and a Gold Star

14. ubuntonista - February 19, 2007

Wow, seems like I was not the only one who found it terribly handy :)

mpt, as opposed to lshw, I have trouble figuring out where to find out, say, the make and specs of my processor. The lshw page that I created for myself(that’s another thing the Device Manager lacks), seems to have information organized in a better, more readable way.

I filed two bugs:bug 1, bug 2.

15. Roy Schestowitz - February 19, 2007

Will you be interested in some nice point-and-click interface that fetches and presents all this information?

16. ubuntonista - February 19, 2007

Hi Roy,

If I understand correctly, mpt was saying that that’s what the device database is supposed to do. Improvements to that would be most welcome :)

17. Dave Morley - February 19, 2007

Roy sysinfo does it nice gui wrap around lshw but give both an abbreviated version and a full listing. Oh and it’s in the ubuntu repo’s :)

18. protocol7 » Blog Archive » links for 2007-02-19 - February 19, 2007

[...] Find Hardware Specs (Details) on your Computer (tags: hardware linux ubuntu lshw) [...]

19. Shankar Ganseh - February 19, 2007

you could even use the hwinfo command

20. Splitsch - February 19, 2007

Thanks for this tools :)
I like it, and I will promote it in french, on my blog
http://www.pastanque.be/splitsch

21. richo123 - February 19, 2007

You may also want to use lshw-gtk for a gui view

22. elbeto - February 19, 2007

It would be nice for Ubuntu tu enable this by default with a command in the menu.

23. Luke - February 19, 2007

Crap! How come I didn’t know about lshw! I can think of so many different times I needed something exactly like this. :P

Thank you so much for posting this.

24. Dwight - February 19, 2007

sweet sweet and sweet!

25. www.davidsabate.info » Find Hardware Specs (Details) on your Computer - February 19, 2007

[...] just read about a really useful command that let you know the specifications in detail of your [...]

26. Carthik Sharma: Find Hardware Specs (Details) on your Computer - Spellbook - IT mage’s best friend - February 20, 2007

[...] post by Planet Ubuntu Tagged: Linux, Ubuntu Trackback [...]

27. Mika - February 20, 2007

Thanks for that packages, even more interesting is that lshw-gtk packet, so you can browse through that information on X.

Please don’t mind, i mentioned your article on my debian blog….

28. Dave - February 21, 2007

Hi, Well i feel like a real dumbo but how do you use this $sudo lshw
where do you type it?
everyone here seems to know……… so im dumb..
However Where do we type it?

Cheersfanxta

29. lshw, listado detallado del hardware de tu equipo « El Blog de rubensa - February 21, 2007

[...] Vía [...]

30. Martyn - February 23, 2007

another example of why linux is awesome!

31. Inez Wells - March 9, 2007

This blog is really superb!!! Thank you for you work! Good Luck

32. gunz - March 15, 2007

Wow - Thanks! Didn’t know the html bit. Very very handy! It will form a major part of my command toolkit now! Thanks again!

33. apt105.com - links for 2007-03-31 - March 31, 2007

[...] Find Hardware Specs (Details) on your Computer « Ubuntu Blog [...]

34. Je pense, donc je suis libre » Blog Archive » Liens en vrac du 22-04-2007 - April 22, 2007

[...] Find Hardware Specs (Details) on your Computer [...]

35. Conocer a fondo el Hardware con Linux « oo0~Black Rose~0oo - April 28, 2007

[...] Artículo original: Ubuntu Blog [...]

36. Un monde parfait » Connaitre les caractéristiques de son ordi - May 3, 2007

[...] Je vous présente aujourd’hui, vite fait bien fait, l’outil “lshw” (via ubuntu.wordpress.com) [...]

37. Another Gandalf - July 16, 2007

Thanks a bunch for this tool - really useful

38. Jessie - August 17, 2007

Jessie

you have a very nice blog and very informative article

39. davidsabate.net » lshw: check your hardware - August 29, 2007

[...] Source : Ubuntu blog [...]

40. sakthienator - September 19, 2007

how to cpu, processor details,memory details(Hard Disk,RAM),processor speed in linux machine..

i need the exact command to do that.plz do the needful thing for that

41. rico - September 24, 2007

i want to know the sound card whether it is working or not

42. tag - October 13, 2007

thanks for the blog….its really nice & useful information

43. Dudley’s Weblog - October 13, 2007

[...] 02 2007 Über diesen Post hab ich von einem genialen Tool erfahren: [...]

44. Paul - November 12, 2007

Wow what a fantastic too. I’ll definately be using this a bit!

45. Saul - November 14, 2007

Yep, Hewlett Packard definitely makes nice notebooks and I’ve owed several of them. I think though since I own my own business now I’d like to get a laptop with a little more “umph” so I’ve been looking at the different models that Sony makes. I’ve never actually owned a Sony but I’ve used a countless number of them and they’ve always given me a pleasurable experience.

I’m looking to go Pentium and a 3 Gig minimum with at least 2 Gigs of RAM. I plan on spending a lot of time on the road and I’ll need this power to run my business from the road and in other offices. Can anyone recommend a specific model?

46. Kim - December 4, 2007

Thank you…

It help when I needed info about my 8 year old MAC POWERBOOK G4 with UBUNTU 6.06 LTS.

// Kim

47. will smith - January 14, 2008

Hey all,

I tried to use this command in OpenSuse 10.3 and it wouldn’t work. come to find out lshw is a bit more than a command. Here is a weblink for the site for it.

http://ezix.org/project/wiki/HardwareLiSter

In addition, I found three other commands that might come in handy for us Linux folks.
command - hwinfo - basically does the same thing as lshw (I think)
command - free - shows you how much memory you have in the system
command - dmidecode - not exactly sure what it does but it sure does look cool :P

later

48. Kiim - March 30, 2008

Hey all,

I tried to use this command in OpenSuse 10.3 and it wouldn’t work. come to find out lshw is a bit more than a command. Here is a weblink for the site for it.

http://www.0s0s.net