From 6d4dc061c51a9717d4de6ef206cdffa9688455aa Mon Sep 17 00:00:00 2001 From: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Date: Mon, 8 Aug 2022 17:12:39 +0000 Subject: [PATCH] inotifywait: add --monitor command (#8278) --- pages/linux/inotifywait.md | 4 ++++ 1 file changed, 4 insertions(+) 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`