diff --git a/pages/linux/inotifywait.md b/pages/linux/inotifywait.md index 049c90354..2747caff2 100644 --- a/pages/linux/inotifywait.md +++ b/pages/linux/inotifywait.md @@ -26,3 +26,7 @@ - Only watch for file modification events: `while inotifywait --event {{modify}} {{path/to/file}}; do {{command}}; done` + +- Continuously watch a specific file for events without exiting: + +`while inotifywait --monitor {{path/to/file}}; do {{command}}; done`