Get server hardware details for ubuntu server

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.


Solution 1:

quick and dirty way:

cat /proc/meminfo

cat /proc/cpuinfo

Solution 2:

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