Super User is a question and answer site for computer enthusiasts and power users. 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'm trying to figure out what changes to disk an app does.. and it's very messy. I'd like a way to monitor my entire file system for a few seconds to know which files have been accessed and written to. I thought of checking the modified date.. but of course it takes ages to do that for every file... there must be a cleverer way!

share|improve this question
up vote 4 down vote accepted

Check out fs_usage (shows all filesystem activity), creatbyproc.d (just file creation), filebyproc.d (just file opens), opensnoop (similar, different format), and rwsnoop (reads and writes).

share|improve this answer

For Linux, you'd check into 'inotify'. Quick research indicates the same tech for OSX is called 'kqueue'. It hooks into the filesystem and fires when events happen.

As usual, IBM has an excellent article.

share|improve this answer
Might want to fix the link – Mark Nov 12 '09 at 23:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .