Linux

free

SafeMemory usage

free -h

Shows used/free physical and swap memory.

Examples

  • free -hHuman-readable

Syntax

free -h

Before you run it

Read-only.

Used when you see

Suspected memory leak
1
Check free memory and swap usage'available' is the real headroom; growing swap is the red flag.
See the whole flow →
Processes vanish (OOM killer)
2
Review overall memory and swap
See the whole flow →

Related commands

  • topLive process monitor

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store