Difference between revisions of "Watch"
From Linuxintro
(Undo revision 3092 by ThorstenStaerk (talk)) |
imported>ThorstenStaerk m (Reverted edits by 193.147.24.4 (talk) to last revision by ThorstenStaerk) |
||
Line 1: | Line 1: | ||
− | + | [[watch]] is a [[command]] that allows you to execute another command in a specified interval and display the results. | |
+ | |||
+ | As an example, to watch the size of a file ''test'' in 1 second intervals: | ||
+ | * [[open a console]] | ||
+ | * enter | ||
+ | watch --interval=1 "[[du]] -h ''test''" | ||
+ | |||
+ | Stop watch using the key combination CTRL_C | ||
+ | |||
+ | = See also = | ||
+ | * [http://man-wiki.net/index.php/1:watch watch's man page] |
Revision as of 11:41, 25 September 2011
watch is a command that allows you to execute another command in a specified interval and display the results.
As an example, to watch the size of a file test in 1 second intervals:
- open a console
- enter
watch --interval=1 "du -h test"
Stop watch using the key combination CTRL_C