How to check the amount of running memory on Ubuntu?
In Ubuntu, you can check the size of the running memory in several ways:
- To use the command line tool “free”:
Open a terminal, type the command “free”, then press Enter. In the output results, you can see the total size of the running memory (total) as well as the used, free, and buffers/cache sizes. - To use the command line tool “top”:
Open the terminal, type in the command “top”, and then press Enter. In the interface of the top tool, you can view the total size of the memory (Mem:), as well as the used and free sizes. - To utilize the command line tool “free -h”:
Open the terminal, type the command “free -h”, and then press Enter. In the output, you can see the total size of the running memory (total) as well as the sizes of used, free, and cache and buffer (available), displayed in more friendly units such as GB. - Open the terminal and type the command “cat /proc/meminfo” followed by pressing enter. The output will provide detailed information about the memory, including the total size of the available memory (MemTotal), as well as the used (MemUsed) and free (MemFree) sizes.
No matter which method you choose, the above commands provide a way to view the size of the running memory.