track down log for 1 file

tarsiran

Verified User
Joined
May 11, 2011
Messages
44
how to find what processes have written to a file on Linux?
Is there a way to find out which process wrote to a give file earlier. I am having a problem where multiple processes seem to be writing to a file. I know one of the processes but not sure who else is writing to the file. I am on linux/cent os. Is there a way a log is mantained by the OS on what processes have written to a specified file

please help me
 
@tarsiran,

Hello,

in realtime you might want to use lsof.

If you've got no lsof installed on your box, then you can install it from packages both on CentOS and Ubuntu/Debian.
 
Once you've got lsof installed on your system run
Code:
man lsof
for documentation.

Jeff
 
Back
Top