ps_mem Shows Programs RAM Usage in Linux

There are several ways to see how much RAM is used in a Linux system with tools like free, vmstat, top, etc…, but today I’ve come across ps_mem which displays the RAM used for each program in a neat way. The post on lintut.com explains how to install it on Centos / Fedora:

As a Ubuntu user, I immediately tried apt-get install ps_mem, but there isn’t such package. After running apt-file search, I found it in w3af-console package:

Another way to install the script is to simply get it from Github. Running the command without options will list of programs with RAM usage from the smallest to the largest:

You can also check the full command line for the programs: sudo ps_mem -s Private + Shared = RAM used Program 4.0 KiB + 31.5 KiB = 35.5 KiB /sbin/getty -8 38400 tty5 4.0 KiB + 32.0 KiB […]