Getting about CPU and RAM in Linux
In Linux Distribution, if you went to display and went to know about hardware the information of your system then below commands will help you.
To get CPU information in Linux
$ cat /proc/cpuinfo
To get Memory (RAM) information in Linux
$ cat /proc/meminfo
To know more about Memory (RAM) info, use free command to view.
$ free –help
|for more options
|memory in bytes
|memory in Megabyte
|memory in Gigabyte
|memory in human readable format
|show detailed low and high memory statistics
|show total for RAM + swap