Online Linux Terminal Logo
OnlineLinuxTerminal
Disque et stockageCLI Manual

$free

Display total amount of free and used physical memory and swap.

Syntaxe de la commandePOSIX Standard
free [OPTIONS]
Communauté Linux2.4k En ligne

Échangez avec des utilisateurs Linux, apprenez des commandes et téléchargez des PDF.

Essayer en direct dans le bac à sable interactif

Simulation côté client sans installation avec retour instantané.

Ouvrir dans le terminal plein écran ↗
bash — terminal

Aperçu et fonctionnement

`free` provides an instant summary of system RAM and Swap memory utilization. It reports total, used, free, shared, buffer/cache, and available memory.

Options et drapeaux courants

Flag / OptionDescription
-h, --humanShow memory values in human-readable units (e.g., 8Gi, 512Mi).
-m, --megaDisplay amounts in megabytes.
-g, --gigaDisplay amounts in gigabytes.

Exemples pratiques du monde réel

#1Check human-readable RAM usage

Prints RAM and swap memory in GB and MB.