Script to print the RAM size

Here is a script that prints the RAM size of a system using the information from /proc/cpuinfo . I couldn't come across a command that gives only the ram size info in a user friendly way, hence wrote this to make it easier to view only the RAM size. Save the script as,give it execute permission using chmod and execute the script as follows.

It gives the output in MB.

Follow by Email