Track an applications usage in Mac OS X with opensnoop
Command Line, Tips & Tricks, Utilities - January 27th, 2010 - 2 Comments
Using the command line tool ‘opensnoop’ you can track any Mac applications (or system process) usage of the file system. This is a very handy tool for administrators and troubleshooting! The simplest way to use it is as follows:
sudo opensnoop -n Safari
You can also track a specific file, and what is accessing it, like so:
sudo opensnoop -f /etc/hosts
Tracking a specific process is as simple as just specifying the process id:
sudo opensnoop -p PID
opensnoop will keep tracking the file until the process itself is ended, so just hit Control-C in the Terminal to stop opensnoop from running. In case you’re wondering, opensnoop is based on DTrace, a popular UNIX tool.
The uses are infinite, give it a try, or read more about opensnoop



[...] from running. In case you’re wondering, opensnoop is based on DTrace, a popular UNIX tool.[via]You might also enjoy:Hiding Files and Folders in OS XLast Revision: January 27th, 2010 at [...]
[...] Track an applications usage in Mac OS X with opensnoop via OS X Daily by Bill Ellis on 1/27/10 [...]