inotify
The Linux kernel facility that notifies programs when files or directories are created, changed or deleted.
In more detail
Each watch uses a kernel resource, and the number of watches per user is limited, which large projects can hit. On Linux, fs.watch and most file-watching tools are built on it.
Related terms
- kqueue — The event notification facility on macOS and BSD systems, doing the job epoll does on Linux and also reporting file changes.
- fs.watch() — The Node.js function that reports changes to a file or directory using the operating system's notification system.
Taught in
- Directory Traversal: Recursive Readdir & fs.watch — Node.js Internals & Backend Services