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
Linux Network (TCP) Performance Tuning with Sysctl
Viewed 13218 times since Fri, Aug 3, 2018
Enabling or disabling a repository using Red Hat Subscription Management
Viewed 13499 times since Mon, Oct 29, 2018
tcpdump usage examples
Viewed 3107 times since Fri, Jul 27, 2018
How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD find
Viewed 4655 times since Mon, Oct 29, 2018
stunnel Securing telnet connections with stunnel
Viewed 2351 times since Sun, Dec 6, 2020
Tip: SSD and Linux. Enable TRIM and check if it works
Viewed 18415 times since Fri, May 15, 2020
How to use yum-cron to automatically update RHEL/CentOS Linux 6.x / 7.x
Viewed 5934 times since Tue, Dec 4, 2018
LVM: Recovering Physical Volume Metadata
Viewed 14026 times since Sat, Jun 2, 2018
Create a Linux Swap File
Viewed 3734 times since Fri, Jun 8, 2018
20 Linux YUM (Yellowdog Updater, Modified) Commands for Package Management YUM
Viewed 12078 times since Thu, Oct 25, 2018