I want to know what is command which will show me servers hardware [through ssh access], like how much Gb RAM is installed, cpu speed, and so on.

Thank You.

link|improve this question

feedback

5 Answers

up vote 3 down vote accepted

quick and dirty way:

cat /proc/meminfo

cat /proc/cpuinfo

link|improve this answer
feedback
lshw

I have found lshw to be an invaluable resource in gathering hardware information that is otherwise difficult to gather without cracking the servers case (BIOS version, Motherboard model number, which slots of RAM are populated, etc)

A good writeup/overview of lshw can be found here

link|improve this answer
Always good to find out about commands that I'd never heard of +1 for teaching me something new. – Richard Holloway Mar 8 '10 at 14:44
feedback
link|improve this answer
feedback

More specific information about hardware may be given by a dmidecode command.

link|improve this answer
feedback

Try the following commands:

free -m
cat /proc/cpuinfo  | grep -E "(model name|cpu MHz)"
lspci
less /var/log/dmesg (or just exec dmesg)

This will first show you the amount of RAM (in MB) installed in your system. Then the CPU Name and speed - it will output it for each (virtual)core. lspci lists all PCI devices and the dmesg log shows you all kernel messages which include initialization of hardware.

That should cover about everything they build into your system.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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