Skip to main content

Command for Memory Monitoring

The free command can be used to monitor memory usage.

Command output example:

# free -g
total used free shared buff/cache available
Mem: 251 44 1 0 205 205
Swap: 7 0 7

Parameter description:

ParameterDescription
totalThe amount of memory.
total = used + free + buff/cache
usedThe amount of used memory.
freeThe amount of free memory.
sharedThe amount of shared memory.
buff/cacheThe amount of memory used as buffers and cache.
availableThe amount of available memory.
available = free + buff/cache