Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.