There are several ways to find out the memory utilization on a Linux system. Here are a few options:
free
command:
The free
command is a simple tool that displays the amount of free and used memory in the system. To use the free
command, simply enter the command at the terminal prompt:
free
The output of the free
command will show the total amount of memory in the system, the amount of used memory, the amount of free memory, and the amount of memory used for caching.
top
command:
The top
command is a real-time system monitor that displays a list of the processes running on the system, along with their CPU and memory utilization. To use the top
command, enter the following command at the terminal prompt:
top
The output of the top
command will show the total amount of memory in the system, the amount of used memory, and the amount of free memory.
htop
command:
The htop
command is a more advanced version of the top
command that provides a more user-friendly interface and additional features. To use the htop
command, enter the following command at the terminal prompt:
htop