inotify is a Linux kernel subsystem that works to expand filesystems to notice changes to the filesystem, and report those changes to applications.
The inotify API provides a mechanism for monitoring file system events. Inotify can be used to monitor individual files, or to monitor directories. When a directory is monitored, inotify will return events for the directory itself, and for files inside the directory.1
1Source:Linux man page 7