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.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
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
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.
Probe example for Dell PowerEdge R710: https://linux-hardware.org/?probe=186f3c15dd
You can find similar hardware models and configurations in the database to compare and properly setup your system.
I'm the author of this project, feel free to ask any questions in comments.