4 Commands To Check Memory Usage In Linux


In this linux tutorial, I will show you how to check memory usage in linux. I will show you some basic commands to check memory usages in linux operating system. Check those below commands to check memory usage in linux.

#free command

The free command is the most easy-to-use command to check memory usage on Linux. Here is a quick example:

free -m



The next way to check memory usage in linux is to read the /proc/meminfo file. See the example:

cat /proc/meminfo



The vmstat command with the s option shows us memory usage statistics much like the proc command. Here is an example

vmstat -s


#top command

The top command is normally used to check memory and CPU usage per process. 



Hope this tutorial will help you.