Tag Archives: usage

Find The Memory Usage of a Process

Well this was something i needed to do the other day and as I would not need to do it again for some time, and would therefore forget what i did. I simply wrote it down for later use :-);

Take a look as the man page for the command ps. Well that’s about it really. Ok, a little more info would be nice.

What is needed is to change the format of the output to give the required information. I my case I wanted to see only the PID, user name, the command name and the memory usage. This will give the following:

ps -o pid,euser,comm,rss

In the man page take a look at the section STANDARD FORMAT SPECIFIERS there are a whole bunch of them to choose from.