Display memory and swap totals in readable units.
free -hDisplay memory use. The -h flag chooses human-readable units.
free [OPTION]...Display memory and swap totals in readable units.
free -hRefresh memory statistics every two seconds.
free -h -s 2| Option / clause | Description |
|---|---|
-h, --human | Show sizes in human-readable units. |
-b, --bytes | Show sizes in bytes. |
-k, --kibi | Show sizes in kibibytes. |
-m, --mebi | Show sizes in mebibytes. |
-g, --gibi | Show sizes in gibibytes. |
-s SECONDS, --seconds=SECONDS | Repeat the display at the given interval. |
-w, --wide | Use a wide output format. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.