An event monitoring tool such as inotify can be configured for notifying processes about file system events, including file creation, deletion, and updates. The Linux system puts a limit on the number of inotify watches a user can receive. To increase the limit, edit etc/sysctl.conf to add a line:

fs.inotify.max_user_watches = 524288

Run the command:

$ sudo sysctl -w fs.inotify.max_user_watches=524288