Check Linux Memory Usage

  1. 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.

  1. 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.

  1. 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.

bannerAds