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?

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

CPU

$ cat /proc/cpuinfo

Memory :

$ free
$ cat /proc/meminfo

HDD:

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

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

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

  • 1
    sudo lshw | less – wranvaud Jul 1 '16 at 3:38

hwinfo would be one way to do it.

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.