Difference between revisions of "Watch"

From Linuxintro
(Undo revision 3092 by ThorstenStaerk (talk))
imported>ThorstenStaerk
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Extremely helpful article, paelse write more.
+
[[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://linux.die.net/man/1/watch watch's man page]

Latest revision as of 08:37, 23 April 2014

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:

watch --interval=1 "du -h test"

Stop watch using the key combination CTRL_C

See also