Monday, April 9, 2012

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.

ramsize.sh: Save the script as ramsize.sh,give it execute permission using chmod and execute the script as follows.

It gives the output in MB.

0 comments:

Post a Comment