Reputation: 2649
I would like help on how to find out what process/user is deleting images in a Linux filesystem folder. So, e.g., given a folder in which files are being deleted randomly, identify what deletes them.
More precisely, my problem is:
Some other information:
Any ideas on how to start debugging such problem?
Thanks.
Upvotes: 0
Views: 1175
Reputation: 98
May be you can use the iwatch to watch for any changes in a directory
Or install inotifywait on the system and use it to wait for notifications for a directory by logging its output to a file
inotifywait -m -r -e delete dir_name
and log the above to a file to check how it goes.
Normally its very hard to exactly check who and when deletes a files as for most of the part that file is gone.
Upvotes: 2