4 Commands To Check Memory Usage In Linux

Hello,

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

 

#/proc/meminfo

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

cat /proc/meminfo

 

#vmstat

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. 

top

 

Hope this tutorial will help you.

 

#linux