% inotifywait -rme modify,attrib,move,close_write,create,delete,delete_self /srv/test To check whether your own kernel version supports Inotify as well, you can run the following command: Nowadays being based on the fsnotify backend all major Linux distributions provide proper Inotify support out of the box. What's known as kqueue on BSD and Mac OS X provides an efficient way to trace actions in the filesystem on Linux in real-time. Inotify is a file change notification system in the Linux kernel, available since version 2.6.13. In this article we will walk through how to use Inotify to monitor directories and trigger alerts on changes and present tools you might want to add to your personal toolbox. A framework which fulfills that requirement is Inotify. Data integrity systems like Tripwire track file changes based on a fixed time schedule, but the time-scheduled approach doesn't work if you want to be notified every time it changes in real-time - just as an event takes place. if the modification timestamp on a file isn't changed).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |