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
RHEL: Extending the maximum inode count on a ext2/ext3/ext4 filesystem
Viewed 3530 times since Sun, May 27, 2018
RHEL: Multipathing basics
Viewed 9619 times since Sat, Jun 2, 2018
RHEL: Scan and configure new SAN (fibre channel) LUNs
Viewed 8394 times since Sun, May 27, 2018
LVM: Create a new Logical Volume / Filesystem
Viewed 2277 times since Sat, Jun 2, 2018
Linux RedHat How To Create An RPM Package
Viewed 3491 times since Sun, Jan 9, 2022
How to enable Proxy Settings for Yum Command on RHEL / CentOS Servers
Viewed 12930 times since Thu, Jul 19, 2018
Deskshare TLS over Stunnel
Viewed 2992 times since Fri, Sep 28, 2018
debian How to check Debian CVE status using python script
Viewed 3802 times since Sun, Sep 23, 2018
OpenSSL – sprawdzanie czy klucz pasuje do certyfikatu
Viewed 2893 times since Thu, May 24, 2018
stunnel bacula
Viewed 2264 times since Fri, Sep 28, 2018