$sudo iwatch -e all_events /usr/lib/


$sudo iwatch -e all_events  /usr/lib/
[ 7/Jan/2012 19:00:25] IN_OPEN /usr/lib//libmagic.so.1.0.0
[ 7/Jan/2012 19:00:25] IN_ACCESS /usr/lib//libmagic.so.1.0.0
[ 7/Jan/2012 19:00:25] IN_OPEN /usr/lib//libz.so.1.2.3.4
[ 7/Jan/2012 19:00:25] IN_ACCESS /usr/lib//libz.so.1.2.3.4
[ 7/Jan/2012 19:00:25] IN_CLOSE_NOWRITE /usr/lib//libz.so.1.2.3.4
[ 7/Jan/2012 19:00:25] IN_CLOSE_NOWRITE /usr/lib//libmagic.so.1.0.0

 

jeffrin@debian:~$ file hello-world.asp
hello-world.asp: HTML document, ASCII text
jeffrin@debian:~$

Related Link.
http://en.wikipedia.org/wiki/Inotify


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Facebook photo

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

Connecting to %s

%d bloggers like this: