inotify-tools

Monitor file system events in real-time using inotify

brewmacoslinux
Try with needOr install directly
Source

About

C library and command-line programs providing a simple interface to inotify

Commands

inotifywaitinotifywatch

Examples

Watch for any changes to a file and report events$ inotifywait -m /path/to/file
Monitor a directory for create/delete/modify events$ inotifywait -r -e create,delete,modify /path/to/directory
Count file system events over time in a directory$ inotifywatch -r -e modify /path/to/directory