Beginner
Package: procps
free
Display memory and swap usage.
Syntax
free [options]
Description
free summarises total, used, free and cached memory as well as swap usage, giving a quick at-a-glance view of memory pressure on the system.
Examples
free -h
Show memory usage in human-readable units (MB/GB)
free -h -s 5
Refresh the display every 5 seconds
free -m
Show usage explicitly in megabytes
Don't worry about low 'free' memory alone — Linux uses spare RAM for disk cache; check the 'available' column instead.
Applies to
Put it into practice