Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to log processes that run over a period of time so that I end up with a tidy list of processes that have run over the the last hour or so?

top is great of realtime monitoring but i'm looking for a log of what new processes show up over a time period.

share|improve this question
up vote 2 down vote accepted

First install and enable process accounting. On a Debian-based Linux:

apt-get install acct

Then you can use lastcomm.

share|improve this answer
Haven't we met before? : ) – Eduardo Ivanec Jan 4 '12 at 17:51
Beware, you'll be using a chunk of disk space to do this. – mdpc Jan 4 '12 at 18:02
Sure have. Thanks - that is the answer i'm looking for alright. – evolution Jan 4 '12 at 18:08

sar might do this as well. Install it, configure it and run it as daemon.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.