How to display available RAM in MB in Linux

Here is simple one -line command line that you can use to display the available RAM in MB on your Linux system.

root@localhost# cat /proc/meminfo | awk 'match($1,"MemTotal") ==1 {print $2/1024}'

The output will be now showing the available RAM  in MB.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.