linux下監控是否有IO,linux下監控IO

來源:互聯網
上載者:User

linux下監控是否有IO,linux下監控IO

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 forever.  Without              this option, inotifywait will exit after one              event is received.-d|--daemon   Same as --monitor, 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 less (only print events).-qq           Print nothing (not even events).--format <fmt>Print using a specified printf-like format              string; read the man 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 for a single event, time out after              waiting for an event  for <seconds> seconds.              If <seconds> is 0, inotifywait will never time out.-e|--event <event1> [ -e|--event  <event2> ... ]Listen for specific event(s).  If omitted, all events are listened for.        Exit status:0  -  An event you asked to watch for was received.1  -  An event you did not ask to watch for was 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 attributes changed        close_writefile or directory closed, after being opened in writable modeclose_nowritefile or directory closed, after being opened in read-only mode        closefile or directory closed, regardless of read/write modeopenfile or directory openedmoved_tofile or directory moved to watched directorymoved_fromfile or directory moved from watched directory        movefile or directory moved to or from watched directorycreatefile or directory created within watched directorydeletefile or directory deleted within watched directorydelete_selffile or directory was deletedunmountfile system containing file or directory unmounted

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.