There are many ways to check the memory usage on your machine. I will show you the top 5 commands to with the help of we can find the usage on the Linux machine they are very useful. you can check memory usage by user and kernel using the top command in Linux.
Top 5 Command To Check Memory Usage On Linux :
- Free – it shows the total amount of free memory and used physical and swap memory in the system.
Use the below command to check the free memory left in the machine.
This commands Display the amount of memory in megabytes.
- vmstat – it reports virtual memory statistics about the process, paging, block I/O, system, and CPU.
3. df –h commands shows the free space in the systems
- top – this commands basically shows the displays the Memory and CPU usage per process It provides a dynamic real-time view of a running system.
Check Out: How To Send Root Mail To existing User
5. cat /proc/meminfo – This file stores statistics about memory usage on Linux based systems and almost the same as free commands and also shows you the buffer, cached, and memory available.
You’re done linux kernel memory usage by user