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
SYS: Configure a local repository. local repo
Viewed 12048 times since Mon, Oct 29, 2018
rabbitmq Troubleshooting TLS-enabled Connections
Viewed 3812 times since Sun, Dec 6, 2020
linux unix aix banner /etc/issue
Viewed 2739 times since Fri, Aug 3, 2018
How To: Create Self-Signed Certificate – OpenSSL
Viewed 3888 times since Mon, Feb 18, 2019
How to stop and disable auditd on RHEL 7
Viewed 42940 times since Tue, Aug 6, 2019
linux manual tools
Viewed 3677 times since Fri, Sep 28, 2018
red hat 7 tmpfiles service
Viewed 2576 times since Thu, Oct 11, 2018
LVM: Reduce SWAP size by shrinking existing Logical Volume
Viewed 7422 times since Sat, Jun 2, 2018
RHEL7: Create and configure LUKS-encrypted partitions and logical volumes to prompt for password and mount a decrypted file system at boot.
Viewed 14579 times since Mon, Aug 6, 2018
Deskshare TLS over Stunnel
Viewed 3587 times since Fri, Sep 28, 2018