Checking the RAM and swap space available in Linux


connect as root




# grep MemTotal /proc/meminfo
  MemTotal:        8009228 kB

----- or


# free
             total       used       free     shared    buffers     cached
Mem:       8009228    7795552     213676          0     228088    4766436
-/+ buffers/cache:    2801028    5208200
Swap:     16773112       2340   16770772




grep SwapTotal /proc/meminfo

SwapTotal:      16773112 kB

Post a Comment

And that's all there is to it!

If anyone has any other questions or requests for future How To posts, you can either ask them in the comments or email me. Please don't feel shy at all!

I'm certainly not an expert, but I'll try my hardest to explain what I do know and research what I don't know.

Previous Post Next Post