How to see total installed RAM in Linux?

Bryan McClure

Well-known member
Registered
Joined
Jul 20, 2016
Messages
271
Points
18
I have a VPS 4 GB of RAM and I want to check if I am having exact amount what I bought from my hosting provider. How can I see total installed RAM in Linux on my VPS?
 

neckom

Well-known member
Hosting Provider
Registered
Joined
Mar 7, 2017
Messages
88
Points
0
hi,

If you're interested in the physical RAM, use the command dmidecode. It gives you a lot more information than just that...
 

24x7serverman

Well-known member
Hosting Provider
Registered
Joined
Jul 25, 2017
Messages
651
Points
28
/proc/meminfo command is used to display the actual used memory as well as free memory on the server. It includes the information of swap partition too. Here is the command to display the used and remaining RAM on the server -

$ less /proc/meminfo
or
$ cat /proc/meminfo


One more command is there, which provides the output in the human readable format that is free -m.
 

qbeststar

Well-known member
Hosting Provider
Registered
Joined
May 6, 2017
Messages
120
Points
18
you can install htop using ssh command:

Centos

## RHEL/CentOS 7 64-Bit ## (You must enable this repo)

Code:
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm
Code:
rpm -ivh epel-release-7-10.noarch.rpm
Code:
yum install htop
Debian/Ubuntu

Code:
apt-get install htop

Then just run htop.

Enter htop
 

HostYourNet-DR

Well-known member
Registered
Joined
Jan 13, 2017
Messages
139
Points
18
You can use the world top and look for the "Mem: 3925168k total" at the top left.
My VPS is using 4gb of ram and 4gb of swap.
 
Older Threads
Replies
3
Views
3,672
Replies
2
Views
18,108
Replies
6
Views
4,856
Replies
20
Views
7,579
Newer Threads
Replies
2
Views
2,864
Replies
26
Views
7,889
Replies
2
Views
2,166

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top