![Forrest logo](/images/logo.png)
free:tldr:e31da
free: Display memory in human-readable units.
$ free -h
try on your machine
The command "free -h" is used to display memory usage on a Linux system, but with human-readable format.
Here is the breakdown of the command:
- "free" is the basic command to display memory usage.
- "-h" is a flag that formats the output to be more readable by humans.
The output of the command provides information about the system's memory utilization in the following columns:
- "total": total physical memory installed in the system.
- "used": amount of memory currently being used.
- "free": amount of memory not being used.
- "shared": memory shared between different processes.
- "buff/cache": memory used for file buffers and disk cache.
- "available": memory that can be immediately reclaimed without causing any issues.
The memory values are displayed in sizes that are more legible to humans, using units like kilobytes (K), megabytes (M), and gigabytes (G). By using the "-h" flag, the values are automatically converted to the appropriate units.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- how to check ram?