Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 562
Ullan Avatar asked Feb 04 '26 05:02

Ullan


1 Answers

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.

like image 72
Andrew Stubbs Avatar answered Feb 05 '26 22:02

Andrew Stubbs