Checking available memory

Linux systems handle memory exceptionally well, though it's always possible for things to get out of hand if a process misbehaves or not enough memory was allocated. In such a situation where a system starts to perform sluggish, checking your available memory will probably be one of the first things you look into. To do this, we use the free command. To make the output even more readable, you can add the -m option, which shows your memory usage in terms of megabytes, which can make it much easier to read. Reading this output may be confusing at first, though I'm sure you'll find it straightforward after we go through the output.

The output of the free command

When running the free command, we're presented with three rows ...

Get Mastering Linux Network Administration now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.