4.3.4. free — view free and used memory#

With free, you can find the amount of free and used memory (RAM) and swap space.

Usage:

free -h

Output:

              total        used        free      shared  buff/cache   available
Mem:          3.8Gi       618Mi       1.3Gi       7.0Mi       1.9Gi       3.0Gi
Swap:         979Mi          0B       979Mi

The -h option makes the output human-readable with corresponding units displayed. In the example above, the amount of free physical memory (RAM) is 1.3 GiB (Gibibytes).