⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 watch.1

📁 Linux下进程监控相关源代码
💻 1
字号:
.TH WATCH 1 "1999 Apr 3" " " "Linux User's Manual".SH NAMEwatch \- execute a program periodically, showing output fullscreen.SH SYNOPSIS.B watch.I [\-dhv] [\-n <seconds>] [\-\-differences[=cumulative]] [\-\-help] [\-\-interval=<seconds>] [\-\-version] <command>.SH DESCRIPTION.BR watchruns.I commandrepeatedly, displaying its output (the first screenfull).  This allows you towatch the program output change over time.  By default, the program is runevery 2 seconds; use .I -n or --intervalto specify a different interval..PPThe .I -d or --differencesflag will highlight the differences between successive updates.  The .I --cumulativeoption makes highlighting "sticky", presenting a running display of allpositions that have ever changed..PP.BR watchwill run until interrupted..SH NOTENote that.I commandis given to "sh -c"which means that you may need to use extra quoting to get the desired effect..PPNote that POSIX option processing is used (i.e., option processing stops atthe first non-option argument).  This means that flags after.I commanddon't get interpreted by.BR watchitself..SH EXAMPLES.PPTo watch for mail, you might do.IPwatch \-n 60 from.PPTo watch the contents of a directory change, you could use.IPwatch \-d ls \-l.PPIf you're only interested in files owned by user joe, you might use .IPwatch \-d 'ls \-l | fgrep joe'.PPTo see the effects of quoting, try these out.IPwatch echo $$.IPwatch echo '$$'.IPwatch echo "'"'$$'"'".PPYou can watch for your administrator to install the latest kernel with.IPwatch uname -r.PP(Just kidding.).SH BUGSUpon terminal resize, the screen will not be correctly repainted until thenext scheduled update.  All.I --differenceshighlighting is lost on that update as well..PPNon-printing characters are stripped from program output.  Use "cat -v" aspart of the command pipeline if you want to see them..SH AUTHORSThe original.B watchwas written by Tony Rems <rembo@unisoft.com> in 1991, with mods andcorrections by Francois Pinard.  It was reworked and new features added byMike Coleman <mkc@acm.org> in 1999.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -