cmd/gio/monitor

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< cmd‎ | gio
Revision as of 22:59, 2 January 2024 by Woozle (talk | contribs) (Created page with "'''Command''': {{l/cmd|gio}} monitor [OPTION...] [LOCATION...] ==About== Monitors files or directories for changes, such as creation deletion, content and attribute changes, a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.