Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Had a sysinternals tool (filemon) for that, but now I can find something similar for the mac.

I'm a developer and I basically want to debug "file not found" or "wrong permissions" errors.

share|improve this question

3 Answers 3

up vote 15 down vote accepted

You can use lsof or fs_usage in Terminal. lsof can be quite powerful. If it's about a specific process, you can try sampling it in Activity Monitor.

For a GUI tool, my recommendation is fseventer:

enter image description here

enter image description here

enter image description here

More GUI-oriented utilities, which I haven't used:


enter image description here

FS Spy

enter image description here

share|improve this answer
+1 very nice answer. Btw, I've just tried FileMon and the filtering doesn't seem to work, which makes it pretty useless. fseventer is very nice. –  occulus Feb 27 '13 at 10:59

For viewing what files are accessed in real time you can leverage fs_usage part of the FSEvents feature in Mac OS X or even dtrace itself.

Usage: sudo fs_usage [PID].

For more info, check out the man page

share|improve this answer
fs_usage is my favorite. I wrote about it on my blog post @ mohit.io/blog/fs_usage-trace-file-system-calls-on-mac-os-x where I was stuck with Outlook that had hung and I wanted to know what it was doing on my Mac. –  mohit Mar 20 at 19:00

You can use the dtrace opensnoop script to identify failed opens (file not found and permission errors)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.