cmd/gio/monitor
Jump to navigation
Jump to search
Command: gio monitor [OPTION...] [LOCATION...]
About
Monitors files or directories for changes, such as creation deletion, content and attribute changes, and mount and unmount operations affecting the monitored locations.
The monitor command uses the GIO file monitoring APIs to do its job. GIO has different implementations for different platforms. The most common implementation on Linux uses inotify.
Options
option | description |
---|---|
-d, --dir=LOCATION | Monitor the given location as a directory. Normally, the file type is used to determine whether to monitor a file or directory. |
-f, --file=LOCATION | Monitor the given location as a file. Normally, the file type is used to determine whether to monitor a file or directory. |
-D, --direct=LOCATION | Monitor the file directly. This allows changes made via hardlinks to be captured. |
-s, --silent=LOCATION | Monitor the file directly, but don’t report changes. |
-n, --no-moves | Report moves and renames as simple deleted/created events. |
-m, --mounts | Watch for mount events. |