How to see total installed RAM in Linux?

Bryan McClure

Well-known member
Joined
Jul 20, 2016
Messages
194
Best answers
0
Ratings
16
Points
18
#1
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
Joined
Mar 7, 2017
Messages
88
Best answers
0
Ratings
3
Points
0
#2
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
Joined
Jul 25, 2017
Messages
651
Best answers
1
Ratings
68 6
Points
28
#3
/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
Joined
May 6, 2017
Messages
116
Best answers
0
Ratings
8
Points
18
#4
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
Joined
Jan 13, 2017
Messages
136
Best answers
0
Ratings
9
Points
0
#5
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
1,334
Replies
2
Views
1,713
Replies
6
Views
1,713
Replies
20
Views
787
Newer Threads
Replies
2
Views
1,617
Replies
26
Views
2,795
Replies
2
Views
240
Recommended Threads
Replies
5
Views
2,209
Replies
6
Views
429
Replies
4
Views
1,830
Replies
0
Views
1,571

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

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