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
Yum Update: DB_RUNRECOVERY Fatal error, run database recovery
Viewed 275 times since Fri, Jan 17, 2020
How to do a Filesystem Resize (ext3/ext4) on Redhat running on VMware
Viewed 1181 times since Wed, Jul 25, 2018
RHCS: Install a two-node basic cluster
Viewed 848 times since Sun, Jun 3, 2018
SSH Essentials: Working with SSH Servers, Clients, and Keys
Viewed 1141 times since Wed, Jun 27, 2018
Tunnel SSH Connections Over SSL Using ‘Stunnel’ On Debian 7 / Ubuntu 13.10
Viewed 627 times since Fri, Sep 28, 2018
LOGROTATE – ARCHIWIAZACJA LOGÓW
Viewed 474 times since Fri, Nov 30, 2018
How to run command or code in parallel in bash shell under Linux or Unix
Viewed 527 times since Tue, Aug 6, 2019
Use Fail2ban to Secure Your Server
Viewed 1477 times since Fri, Jul 5, 2019
RHEL: Extending the maximum inode count on a ext2/ext3/ext4 filesystem
Viewed 947 times since Sun, May 27, 2018
LVM: Move allocated PE between Physical Volumes
Viewed 738 times since Sat, Jun 2, 2018