How do I find out ram information under Linux operating systems?
You can use the following commands to find information about RAM under Linux operating systems.
Find Used and Free RAM Info Command
You need to use the free command:
# free
# free -m
total used free shared buffers cached
Mem: 7930 4103 3826 0 59 2060
-/+ buffers/cache: 1983 5946
Swap: 15487 0 15487
Find Out Ram Speed, Make, Form Factor, Type and Other Information
You need to use the dmidecode command:
# dmidecode --type 17
OR
# dmidecode --type memory
OR
# dmidecode -t 17
Sample outputs:
# dmidecode 2.11 SMBIOS 2.5 present. Handle 0x0017, DMI type 17, 27 bytes Memory Device Array Handle: 0x0016 Error Information Handle: No Error Total Width: 72 bits Data Width: 64 bits Size: 2048 MB Form Factor: DIMM Set: 1 Locator: DIMM1A Bank Locator: Bank1 Type: DDR2 Type Detail: Synchronous Speed: 667 MHz Manufacturer: 5185 Serial Number: 05009F22 Asset Tag: Not Specified Part Number: 72T232220HFA3SB
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop














{ 7 comments… read them below or add one }
free -m
dmidecode
Hi,
probably just a typo, it should be:
# dmidecode –type 17
Thanks for very informative site,
Paul
Thanks for the heads up! The faq has been updated.
htop
is also a good command if you like a graphical display of RAM
Good , i like htop.
less /proc/meminfo will give you detailed information on your systems memory. This is where all other utilities are pulling the information from.
If dmidecode pulls RAM info from /proc/meminfo then it’s using some super-dodecahedral secret decoder ring because “speed” and “type” aren’t there in “cat /proc/meminfo”.