How To Get Ram Size In Linux?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/get-ram-size-linux/
PINTEREST
PINTEREST
INSTAGRAM

What are the ways to get ram size in Linux operating system?

Here is some methods to find ram size in Linux operating systems like Ubuntu, Debian, Fedora, CentOS, Red Hat.

Getting Ram Size With meminfo

Proc file system provides coonfiguration information about the current opoerating system. We can get information from direcly kernel provided /proc/meminfo . We can see a lot of information parameter with meminfo

  • As we see there is a lot of details. Actually a lot of monitoring applications gets data from here.
  • MemTotal is total ram size
LEARN MORE  Compare CentOS(RedHat) vs Ubuntu

Get Ram Size With Simple free Command

We can get ram size with simple free command.

But this will give information with kilobyte size. We want to get megabyte

Or I think gigabyte is better

Getting Ram Size With vmstat

Another tool is vmstat as you see below

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/get-ram-size-linux/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)