Options for free command
Option | Description |
---|---|
-b, –bytes | Displays memory usage in bytes. |
-k, –kilo | Displays memory usage in kilobytes (default). |
-m, –mega | Displays memory usage in megabytes. |
-g, –giga | Displays memory usage in gigabytes. |
–tera | Displays memory usage in terabytes. |
-h, –human | Automatically scales all output columns to the shortest three-digit unit and displays the units (B, K, M, G, T). |
-c, –count | Displays the output ‘c’ number of times; works with the -s option. |
-l, –lohi | Shows detailed low and high memory statistics. |
-o, –old | Disables the display of the buffer-adjusted line. |
-s, –seconds | Continuously displays the output after ‘s’ seconds delay. Uses the usleep system call for microsecond resolution delay times. |
-t, –total | Adds an additional line in the output showing column totals. |
–help | Displays a help message and exits. |
-V, –version | Displays version information and exits. |
free Command in Linux with examples
While using LINUX there might come a situation when you are willing to install a new application (big in size) and you wish to know for the amount of free memory available on your system. In LINUX, there exists a command line utility for this and that is free command which displays the total amount of free space available along with the amount of memory used and swap memory in the system, and also the buffers used by the kernel. This is pretty much what free command does for you.
free Command in Linux
- Basic Syntax of free Command
- Basic Usage free Command
- Options for free command
- Using free command with options