How to find the RAM size in Red Hat Linux Server?

12,203

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.

Share:
12,203
Ullan
Author by

Ullan

Updated on June 07, 2022

Comments

  • Ullan
    Ullan almost 2 years

    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.