Check Linux Memory Usage
- Use the command “free”:
Enter the following command in the terminal:
free -h
This command will display information on the current memory usage of the system, including total memory, used memory, free memory, and other details.
- Use the top command:
Enter the following command in the terminal:
top
In the top command, you can view the current processes and resource usage of the system, including memory usage.
- Use the htop command:
If htop is not installed, you can use the following command to install it:
sudo apt-get install htop
After installation is complete, input the following command in the terminal:
htop
htop is an interactive process viewer that allows for a more intuitive way to monitor system resource usage, including memory usage.
You can view the memory usage of a Linux system using the above methods.