File system monitoring on Mac OS X

Well, do you envy the SysInternal tools for MS Windows?
Although they don’t catch up with their 64bit Windows quite quickly, they are still good. Especially when you are tracking viruses or some tools others created, it is quite handy for figuring out what are being changed.

On Mac OS X, there is a mechanism called fsevent. However, it was recommended not to be used much, because it will impact performance a lot. ( However, the spotlight depends on such functionality a lot. )
yeah.. why not. But we need a such file system monitoring tool.

Many file system monitoring tool like FSSpy were not available anymore, but Leopard was shipped with “opensnoop”, which is a part of DTrace. (Thanks, Sun Microsystems! )

Just try this :

sudo opensnoop

You may want to save it to the live log to a file :

sudo opensnoop > file_system_tracing.txt

Articles on OpenSnoop are here :

And this is a file system change logger written by Amit Singh

Amit Singh doesn’t provide any source codes usually. ( He is a head of some team at Google, right? Are those materials on his web site related to intellectual property of Google? )

P.S. These 3 people are the inventors of DTrace.
http://www.flickr.com/photos/scobleizer/566408503/

DTrace documents are here :

About these ads

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 50 other followers

%d bloggers like this: