To display information about memory, we use the following command:

But if we want the data displayed in the terminal to be maintained, we will use:

The combination of the two args will solve our problem.

Here is the final command:

Here is the displayed result:

free -mt

It will display used and free memory every two seconds.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.