I am trying to find the command to show the installed memory (RAM) in Red Hat Enterprise Linux Server 6.5.
I have found the following command:
cat /proc/meminfo | grep MemTotal
But it looks like the MemTotal value is not the actual RAM value. I want to know the real RAM of the system (similar to Installed memory(RAM) in Windows).
Thanks for your help.
Try the free command, which will tell you the total/used/free amounts of RAM you have, the -m flag will display it in MB:
free -m
Though I think it just uses the same source as /proc/meminfo behind the scenes so you may get the same answer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With