From 5b175dfb89a76cf54b8e54b89f07eff0edd0c3a6 Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Thu, 21 Jan 2016 19:13:27 -0500 Subject: [PATCH 1/2] 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 000000000..1979ac82a --- /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}}` From 5faa753d8fd35aaac6001580145f883c5aedc2d0 Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Thu, 21 Jan 2016 20:37:36 -0500 Subject: [PATCH 2/2] watch: "changes"-->"differences" per waldyrious' suggestion in comments of #707 --- pages/common/watch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/watch.md b/pages/common/watch.md index 1979ac82a..457d45be4 100644 --- a/pages/common/watch.md +++ b/pages/common/watch.md @@ -10,6 +10,6 @@ `watch -n {{60}} {{command}}` -- Monitor the contents of a directory, highlighting changes as they appear: +- Monitor the contents of a directory, highlighting differences as they appear: `watch -d {{ls -l}}`