Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I know that

# ps -u someUser

will print the terminal processes currently being run by a user. Is there a way to get all of the past terminal processes that user ever ran when you're logged in as the root user?

I want all the processes they ran like:

$ php update_financials.php

A command like:

cat ~someUser/.bash_history

would bring up commands I don't care about like

$ pwd

$ ls -l
share|improve this question
up vote 2 down vote accepted

Perhaps user process accounting (as provided by the 'acct' package) might help.

Here's the URL for acct:

The command you'd use is 'lastcomm' (last command).

Here's some blog entries that describe how process accounting can be used:

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.