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,279
Replies
2
Views
16,228
Replies
6
Views
4,280
Replies
20
Views
6,709
Newer Threads
Replies
2
Views
2,631
Replies
26
Views
6,987
Replies
2
Views
1,792
Recommended Threads
Replies
7
Views
2,644
Replies
0
Views
2,306
Replies
10
Views
3,914

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