Forever & AlwaysLINUX COMMAND ATLAS

LINUX COMMAND ATLAS · COMMAND GUIDE

Linux free command

Display memory use. The -h flag chooses human-readable units.

procps-ng

Syntax

Command form
free [OPTION]...

Common options

7 options
OptionWhat it does
-h, --humanShow sizes in human-readable units.
-b, --bytesShow sizes in bytes.
-k, --kibiShow sizes in kibibytes.
-m, --mebiShow sizes in mebibytes.
-g, --gibiShow sizes in gibibytes.
-s SECONDS, --seconds=SECONDSRepeat the display at the given interval.
-w, --wideUse a wide output format.

Usage examples

2 examples

Display memory use. The -h flag chooses human-readable units.

free -h

Refresh memory statistics every two seconds.

free -h -s 2

Notes

Linux buffers and cache are generally reclaimable; the available column is often more useful than free when assessing memory pressure.