Jdu:/host-001e67a8d50b/log/today # inotifywait-hinotifywait 3.14Wait for a particular event on a file or set of files. usage:inotifywait [Options] file1 [File2] [file3] [...] Options:-h|--help Show This help text.@<file> Exclude the specified file from being Watched.--exclude < Pattern> Exclude All events on files matching the extended regular expression <pattern> .--excludei <pattern> like--exclude but case insensitive.-m|--monitor Keep listening for events Forev Er. Without this option, inotifywait would exit after one event is Received.-d|--daemon same as--m Onitor, except run in the background logging events to a file specified by--outfile. implies--syslog.-r|--recursivewatch directories recursively.--fromfile <file> Read files to watch from <file> or '-' for stdin.-o|--outfile <file> Print EveNTS to <file> rather than stdout.-s|--syslog Send errors to syslog rather than Stderr.-q|--quiet Print LY print events).-QQ Print Nothing (not even events).--format <fmt>print using a specified printf-like for Mat string; Read the mans page for more details.--timefmt <fmt>strftime-compatible format string for use with%T in --format string.-c|--csv Print events in CSV format. -t|--timeout <seconds> When listening-a single event, time off after waiting for an EV ent for <seconds> seconds. If <seconds> is 0, inotifywait'll never time out.-e|--event <event1> [-e|--event <event2> ...] Listen for specific event (s). If omitted, all events is listened for. Exit status:0-an event you asked to watch for is Received.1-an event you do not ' ask to watch ' for is Received2 -The--timeout option was given and no events occurred In the specified interval of time. Events:accessfile or directory contents were readmodifyfile or directory contents were writtenattribfile or directory attr Ibutes changed close_writefile or directory closed, after being opened in writable Modeclose_nowritefile or Directo Ry closed, after being opened in read-only mode closefile or directory closed, regardless of Read/write Modeopenfil E or directory openedmoved_tofile or directory moved to watched Directorymoved_fromfile or directory moved from watched di Rectory MoveFile or directory moved to or from watched Directorycreatefile or directory created within watched dire Ctorydeletefile or directory deleted within watched Directorydelete_selffile or directory was Deletedunmountfile system Co ntaining file or directory unmounted
Whether the monitoring has IO under Linux