Linux - How to get Memory information

Linux - How to get Memory information

 
Question : How to show information of memory stick [DIMM] in Linux?
Answer : Command dmidecode with option "t" followed by parameter "memory" could be used to show hardware information of memory stick [DIMM] in Linux.
Example :
[root@server ~]# dmidecode -t memory


Question : How to get number of memory stick [DIMM] installed in Linux?
Answer : dmidecode command can be used to list memory information in Linux. A quick way to get the number of memory stick installed would be couple dmidecode with grep command.
Example :
[root@server ~]# dmidecode -t memory|grep -i speed|grep -v Unknown|wc -l


Question : How to get the size of memory stick [DIMM] installed in Linux?
Answer : Used dmidecode command to display information for memory stick and look for size parameter. Quick way would be to use grep command seaching for keyword size.
Example :
[root@server ~]# dmidecode -t memory|grep -i size|grep -v No
Size: 4096 MB


Question : How to show memory [in MB] used in Linux?
Answer : Command "free -m" could be used to display memory usage in Linux
Example :
[root@server ~]# free -m
total used free shared buffers cached
Mem: 7979 7006 972 0 198 3058
-/+ buffers/cache: 3749 4229
Swap: 32767 0 32767



0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
“Too many authentication failures” with SSH
Viewed 6125 times since Mon, May 21, 2018
Expand or grow a file system on a Linux VMWare VM without downtime
Viewed 11725 times since Fri, Jul 27, 2018
HowTo: Kill TCP Connections in CLOSE_WAIT State
Viewed 15951 times since Thu, Feb 14, 2019
YUM How to use yum command on CentOS/RHEL
Viewed 7265 times since Thu, Oct 25, 2018
12 Tcpdump Commands – A Network Sniffer Tool
Viewed 8843 times since Fri, Jul 27, 2018
6 easy steps to setup offline two factor authentication in Linux
Viewed 13183 times since Mon, Apr 6, 2020
Transform XML to CSV Format | Unix String Pattern Manipulation The Ugly Way
Viewed 5692 times since Sun, Jan 9, 2022
LVM: Extend SWAP size by adding a new Logical Volume
Viewed 3227 times since Sat, Jun 2, 2018
How to sort IP addresses in Linux
Viewed 3671 times since Sun, May 20, 2018
RHEL: Enabling standard ftp/telnet
Viewed 3555 times since Sun, May 27, 2018