See what process is using a file in Mac OS X
问题 I would like to be able to track a file and see which process is touching that file. Is that possible? I know that I can see the list of open processes in activity monitor but I think it's happening to quickly for me to see it. The reason for this is I'm using a framework and I think the system version of the framework is being used instead of the debug version and I'd like to see which process is touching it. 回答1: lsof will list open files, but it can be a bit awkward for momentary touches