96

Possible Duplicate:
How to find out details about hardware on the Linux machine?

How can I get processor/RAM/disk specs from the Linux command Line?

yazz.com
  • 6,743
  • 14
  • 37
  • 38
  • 3
    Similar questions: http://serverfault.com/questions/48642/how-to-find-out-details-about-hardware-on-the-linux-machine http://serverfault.com/questions/3552/is-there-a-linux-equivalent-of-cpu-z http://serverfault.com/questions/107234/command-line-what-is-this-machine http://serverfault.com/questions/55834/determining-type-of-linux-machine http://serverfault.com/questions/77920/how-can-i-find-out-the-server-specs-in-unix http://serverfault.com/questions/5031/how-can-i-find-out-what-hard-disks-are-attached-to-a-linux-box and more – Dennis Williamson Feb 13 '10 at 14:05

4 Answers4

146

CPU

$ cat /proc/cpuinfo

Memory :

$ free
$ cat /proc/meminfo

HDD:

$ df -h
$ sudo fdisk -l
$ hdparm -i /dev/device (for example sda1, hda3...)

Jakov Sosic
  • 5,157
  • 3
  • 22
  • 33
Jindrich
  • 4,958
  • 8
  • 29
  • 42
34

lshw command is also really useful to get a lot of information about all the hardware !

sebthebert
  • 1,224
  • 8
  • 21
9

sudo dmidecode command will also give you more hardware info than you ever wanted.

Jimatw
  • 103
  • 2
jbroome
  • 121
  • 1
8

hwinfo would be one way to do it.

Helvick
  • 19,579
  • 4
  • 37
  • 55