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

 

how-to-check-memory-usage-in-linux

 

#/proc/meminfo

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

cat /proc/meminfo

 

linux check memory usage per process

 

#vmstat

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

vmstat -s

 

vmstat command in linux

 

#top command

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

top

 

top command in linux

 

Hope this tutorial will help you.

 

Facebook Github
A web enthusiastic, a self-motivated full-stack software engineer from Dhaka, Bangladesh with experience in developing applications using Laravel , React and Vue js