LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-12-2009, 08:26 PM   #1
viento
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Rep: Reputation: 1
Question 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.
 
Old 07-12-2009, 08:45 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding proc list and task list of active processes. pravin.embedded Linux - Newbie 1 09-02-2008 01:20 PM
How to get a list of the running processes in the system? zahadumy Programming 7 03-19-2007 08:27 AM
Command to list all running processes GSX Linux - General 4 02-23-2005 03:42 AM
Freevo takes 4 minutes to load mp3 list wally48159 Linux - Software 1 05-11-2004 07:56 PM
How to list all running processes? thrix Linux - Software 2 01-21-2004 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration