How to see total installed RAM in Linux?

Bryan McClure

Well-known member
Joined
Jul 20, 2016
Messages
167
Best answers
0
Ratings
13
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
652
Best answers
1
Ratings
65 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,231
Replies
2
Views
1,390
Replies
6
Views
1,549
Replies
20
Views
502
Newer Threads
Replies
2
Views
1,529
Replies
26
Views
2,591
Replies
2
Views
168
Latest Threads
  • Deleted
  • Deleted by Localnode
Replies
0
Views
7
Replies
1
Views
8
Recommended Threads
Replies
1
Views
1,273
Replies
0
Views
124
Replies
14
Views
1,745
Replies
3
Views
1,097

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Top