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
Red Hat Cluster Tutorial
Viewed 686 times since Sun, Jun 3, 2018
Learn Linux System Auditing with Auditd Tool on CentOS/RHEL
Viewed 491 times since Fri, Apr 5, 2019
8 Vim Tips And Tricks That Will Make You A Pro User
Viewed 483 times since Fri, Apr 19, 2019
OEL 7 – How to disable IPv6 on Oracle Linux 7 – Follow Up
Viewed 639 times since Wed, Jul 25, 2018
Learn how to align an SSD on Linux
Viewed 101 times since Fri, May 15, 2020
HP-UX - Stunnel Configuration
Viewed 427 times since Fri, Sep 28, 2018
LVM: Reduce root PV/VG
Viewed 788 times since Sat, Jun 2, 2018
How do I add ethtool settings to a network device permanently?
Viewed 1567 times since Mon, May 21, 2018
Fałszujemy rozpoznania skanerów #1
Viewed 989 times since Mon, May 21, 2018
Linux PAM configuration that allows or deny login via the sshd server
Viewed 422 times since Wed, Oct 3, 2018