PingDirectory

Setting file system event monitoring (inotify)

An event monitoring tool such as inotify can be configured for notifying processes about file system events, including file creation, deletion, and updates.

About this task

Linux limits the number of inotify watches a user can receive.

Steps

  • To increase the limit, edit etc/sysctl.conf to add the following line.

    fs.inotify.max_user_watches = 524288
  • Run the following command.

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