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
This previously posted question:
How to measure actual memory usage of an application or process?
seems like it may thoroughly address your question.
edit: My personal favorite Linux utility for checking the resource usage of processes is top, though it can be misleading for reasons that are explained in the question I linked.