Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

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?

share|improve this question
up vote 2 down vote accepted

Do you mean something like this:

cat ~someUser/.bash_history
share|improve this answer
Close, but I want all the processes they ran like $ php update_financials.php, cat ~someUser/.bash_history would bring up commands I don't care about like $ pwd or $ ls -l – user784637 Oct 22 '11 at 0:51

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.