Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: malikawan on December 03, 2014, 01:09:13 PM
-
If some one delete a folder or file using command line then we can see the log of command from .bash_history but if some one delete file or folder with mouse and keyboard then how i find these log. if there is no log file can we create a log that any one delete a file or folder we have a log file for it
any idea plz
-
Yes, you can monitor the entire filesystem for delete events with inotify. Note that such a big monitoring target may cost some performance.
-
Sir Curaga thanks for your kind reply i am working on it but i am not success to log deleted files with inotify. because its too difficult to understand. Sir can you help me about that i just want to create a log file and which save file name, date and time of the deleted files.
If you are not much busy then plz help
-
It is not trivial code, requiring to fully recurse every directory.
-
Hi malikawan
The repository contains inotify-tools.tcz. Have you read:
http://linux.die.net/man/1/inotifywatch
-
Hi malikawan
Actually this is the one I think you need:
http://linux.die.net/man/1/inotifywait