Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 cannot remember this command (and googling was unsuccessful), but there is a way to get the list of actions performed by a process, that outputs something like

  # listprocessactions -p 1234
  0.321 Open "A" /var/log/nginx/supersite.log
  0.322 Write to /var/log/nginx/supersite.log
  0.401 Close /var/log/nginx/supersite.log
  0.555 Opens TCP connection with slashdot.org

I'm interested in the files aspect (open / RW files).
The question is what is that command (and if possible in which package on deb / ubuntu)

share|improve this question
up vote 7 down vote accepted

You want strace(1) for that; it lists all the system calls made. See the manual page for details on various ways to present the trace data.

You might also find ltrace(1) useful if you want inter-library calls rather than system calls traced.

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.