Using the free command
To determine memory usage statistics on a server, follow these steps:- Log in to the server using SSH.
-
At the command prompt, type the following command:
📘 Note For easier readability, use the -m option to display memory usage statistics in megabytes. To display statistics in bytes, run the free command without the -m option.
-
Interpret the free command output. For example, consider the following sample output from a server: