1.

Explain with examples in details about the different commands to find memory usage in Linux?

Answer»

From the command shell, USE the command for memory usage information :

cat /proc/meminfo

Ex :

% cat /proc/meminfo  MemTotal: 16250912 kB  MemFree: 3281056 kB  MemAvailable: 10404492 kB Buffers: 1101852 kB Cached: 4654684 kB SwapCached: 129304 kB Active: 7930860 kB Inactive: 2892144 kB Active(anon): 4118480 kB Inactive(anon): 1197660 kB Active(file): 3812380 kB Inactive(file): 1694484 kB Unevictable: 236 kB

There are other commands ALSO which GIVES memory INFO :

free - m vmstat top htop


Discussion

No Comment Found