inotify

From vegard.wiki
Revision as of 20:56, 23 December 2019 by Vegard (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Remember:

  • programs like vim write out a modified file to a new file and then rename it to give it the new name, so there is never any open or close event for the edited file itself, just a move and a delete event

Tips:

  • Use inotifywait -m foo.txt to show what events are generated when accessing the filesystem in particular ways.