From 5b175dfb89a76cf54b8e54b89f07eff0edd0c3a6 Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Thu, 21 Jan 2016 19:13:27 -0500 Subject: [PATCH] watch: add page --- pages/common/watch.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/common/watch.md diff --git a/pages/common/watch.md b/pages/common/watch.md new file mode 100644 index 0000000000..1979ac82a8 --- /dev/null +++ b/pages/common/watch.md @@ -0,0 +1,15 @@ +# watch + +> Execute a program periodically, showing output fullscreen. + +- Repeatedly run a command and show the result: + +`watch {{command}}` + +- Re-run a command every 60 seconds: + +`watch -n {{60}} {{command}}` + +- Monitor the contents of a directory, highlighting changes as they appear: + +`watch -d {{ls -l}}`