I just want to know how to find the memory consumption of a particular process for particular time(say 5 seconds)
I am new to linux. So, detailed steps of doing that wil
Use top -p PID where PID is the process ID. Information about the process should be displayed, including percent of system memory used. Type d and an integer in seconds to change the refresh rate.
top -p PID
d