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.
The free command is the most easy-to-use command to check memory usage on Linux. Here is a quick example:
The next way to check memory usage in linux is to read the
/proc/meminfo file. See the example:
vmstat command with the
s option shows us memory usage statistics much like the proc command. Here is an example
The top command is normally used to check memory and CPU usage per process.
Hope this tutorial will help you.