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
logrotate - rotates, compresses, and mails system logs.
Viewed 2487 times since Fri, Nov 30, 2018
Linux LVM recovery
Viewed 18895 times since Wed, Jan 23, 2019
Linux - How to unlock and reset user’s account
Viewed 5901 times since Fri, Jun 8, 2018
KONTO SFTP Z CHROOTEM Z UŻYCIEM OPENSSH-SERVER NA CENTOS/RHEL6
Viewed 2567 times since Fri, Nov 30, 2018
6 easy steps to setup offline two factor authentication in Linux
Viewed 14932 times since Mon, Apr 6, 2020
SSH: Execute Remote Command or Script – Linux
Viewed 3077 times since Mon, Feb 18, 2019
Securing /tmp and shm partitions
Viewed 4029 times since Fri, May 15, 2020
An easier way to manage disk decryption at boot with Red Hat Enterprise Linux 7.5 using NBDE
Viewed 8786 times since Mon, Aug 6, 2018
Setup SSL Tunnel Using Stunnel on Ubuntu
Viewed 3779 times since Fri, Sep 28, 2018
RHEL: Scan and configure new SAN (fibre channel) LUNs
Viewed 9357 times since Sun, May 27, 2018