Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

free

Display memory usage

Syntax

free [OPTION]...

Common Options

-hHuman-readable format
-bShow in bytes
-kShow in kilobytes
-mShow in megabytes
-gShow in gigabytes
-tShow total line
-sContinuous refresh (seconds)
-cNumber of refreshes

Common Examples

free -h

Show memory in human-readable

free -m

Show memory in MB

free -h -s 2

Refresh every 2 seconds

free -t

Show total line

free -g

Show in GB

free -h -c 5

Refresh 5 times then exit

Related Commands

Related Tools

More Code & Dev Tools