free
SystemBeginner In simulator In real LinuxShow memory usage
Name: free: free memory
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
free shows physical memory and swap usage. Linux uses spare memory as disk cache (buff/cache), so a small free column is normal; available is the memory you can really still use.
Syntax
free [OPTION]Common options
| -h / --human | Human-readable units |
| -m / --mebi | Show in MiB |
| -g / --gibi | In GiB |
| --si | Use powers of 1000 rather than 1024 (MB, GB rather than MiB, GiB) |
| -t / --total | Add a line with memory and swap together |
| -s / --seconds N | Repeat every N seconds |
Examples
$ free -h
Memory and swap usage
Explain