97

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
  • 7,193
  • 15
  • 38
  • 39
  • 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

147

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,267
  • 4
  • 24
  • 35
Jindrich
  • 4,968
  • 8
  • 30
  • 42
34

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

sebthebert
  • 1,234
  • 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
  • 20,019
  • 4
  • 38
  • 55