Whether the monitoring has IO under Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.