Possible Duplicate:
Access history of a file
I know if a file is "being accessed" I can use lsof
to see who (which process) is accessing it, but lsof
is slow and heavy and I don't think I would be able to run it fast enough to see if a file is accessed or not.
So it there a way to watch a file, and see if it ever get accessed and if yes by who?