LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command to display amount of memory (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-display-amount-of-memory-446588/)

rust8y 05-19-2006 11:16 PM

Command to display amount of memory
 
I'm running Suse Linux 10.
What is the command to display the amount of memory installed?

lotusjps46 05-19-2006 11:26 PM

There are probably several, but my favorite is the command "top". At the top of the screen is shows the memory available, and how much is used and free.

Good luck.

C

nilleso 05-19-2006 11:32 PM

free -m
output is in MB

cheers:)

haertig 05-19-2006 11:38 PM

Lots of ways. As lotusjps46 said, "top" is one. Also "free" (a simpler display than "top"). "vmstat" as well.

If you want lots of details, run "cat /proc/meminfo". The first line of output, "MemTotal", tells you how much physical memory you have. The rest of the lines tell you how it's being used. All of the above commands get much of (all of?) their raw data from /proc/meminfo, I believe.

RanDrake10 05-20-2006 07:30 PM

cat /proc/meminfo


All times are GMT -5. The time now is 10:14 PM.