How to check RAM size in CentOS/Redhat

You can use any one of the following command line to view the ram size under Red hat Enterprise Linux desktop or server based system:

  1. /proc/meminfo file –
  2. free command –
  3. top command –
  4. vmstat command –

Examples:

Open a command-line terminal and then type the following commands:

$ cat /proc/meminfo

Redhat Linux: free command

To display amount of free and used memory (including total in the system), enter:

Free -m sample output

$ free -m

Free -g sample output

$ free -g

Free -k sample output

$ free -k

Redhat Linux: top command

The top command can also display total and used memory:

$ top

Sample outputs:

Other commands

The vmstat command can display memory statistics including additional information about processes, paging, block IO, traps, and cpu activity. Type the following command:

$ vmstat
$ vmstat -s

Vmstat output

Vmstat -s output:- display memory statics

Build Your Website with Hostiko

From professional business to enterprise, we’ve got you covered!

Copyright ©2026 QualiSpace. All rights reserved.

A Platform

QualiSpace
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.