98

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?

1

4 Answers 4

148

CPU

$ cat /proc/cpuinfo

Memory :

$ free
$ cat /proc/meminfo

HDD:

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

1
  • cat /proc/cpuinfo is brilliant, never knew about this. Thanks
    – yazz.com
    Feb 14, 2010 at 9:24
35

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

1
  • 4
    sudo lshw | less
    – wranvaud
    Jul 1, 2016 at 3:38
10

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

8

hwinfo would be one way to do it.

Not the answer you're looking for? Browse other questions tagged .