inotifywait Command Examples

Waits for changes to files. More information: https://manned.org/inotifywait.

inotifywait {{path/to/file}}

inotifywait --monitor {{path/to/file}}

inotifywait --monitor --recursive {{path/to/directory}}

inotifywait --monitor --recursive --exclude "{{regular_expression}}" {{path/to/directory}}

inotifywait --monitor --timeout {{30}} {{path/to/file}}

inotifywait --event {{modify}} {{path/to/file}}

inotifywait --quiet {{path/to/file}}

inotifywait --event {{access}} {{path/to/file}} && {{command}}