free Command Generator
Generate free commands to display memory and swap usage
Getting Started with free
## What is free?
The `free` command displays the amount of used and free physical memory (RAM) and swap space. It's the quickest way to check if a system is running low on RAM or relying heavily on swap.
## How to Use
1. **Pick Format**: Enable `-h` (human-readable, on by default) for MB/GB units. 2. **Add Detail (optional)**: Show low/high memory stats (`-l`) or a combined total row (`-t`). 3. **Repeat (optional)**: Use `-s` to refresh on an interval, or `-c` for a fixed number of samples. 4. **Copy & Run**: Copy the generated command into your terminal.
Common Options
### `-h` Human-readable Print values in K/M/G with the appropriate suffix. Without `-h`, `free` reports in kibibytes, which is hard to read at a glance.
### `-l` Low/High detail Show detailed low-memory and high-memory statistics (mostly relevant on 32-bit kernels with the 3G/1G split). Rarely needed on modern 64-bit systems.
### `-t` Totals Append a `Total` row summing physical RAM and swap, giving a single "all memory" view.
### `-s` Repeat every N seconds Refresh the output every N seconds until you press Ctrl-C. Useful for watching memory pressure during a load test.
### `-c` Fixed sample count Print N samples and then exit — pair with `-s` to capture a bounded window of memory usage for a log file.
▶Why does free show very little 'free' memory even when the system is idle?
▶How do I monitor memory continuously?
▶What's the difference between buffers and cache?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee