LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   List all of processes running in the last x minutes (https://www.linuxquestions.org/questions/linux-newbie-8/list-all-of-processes-running-in-the-last-x-minutes-739627/)

viento 07-12-2009 08:26 PM

List all of processes running in the last x minutes
 
How do i record (or find log) of all commands/tasks/processes that linux executing/executed in the last, let's say 5 minutes?

So basically, I need something like ps auxww result, but record in real time for the last x minute.

Thanks.

stress_junkie 07-12-2009 08:45 PM

You could use sar. It is in the sysstat package. Set it up to run the sar data collector. That will put the information into a file that you can read with the sar utility.
Code:

man sar


All times are GMT -5. The time now is 02:28 PM.