Take the 2-minute tour ×

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?

share|improve this question

marked as duplicate by Dennis Williamson, Zypher, splattne Feb 13 '10 at 18:11


4 Answers 4


$ cat /proc/cpuinfo

Memory :

$ free
$ cat /proc/meminfo


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

share|improve this answer
cat /proc/cpuinfo is brilliant, never knew about this. Thanks –  Zubair Feb 14 '10 at 9:24

hwinfo would be one way to do it.

share|improve this answer

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

share|improve this answer

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

share|improve this answer
