diff --git a/pages/common/watch.md b/pages/common/watch.md new file mode 100644 index 000000000..457d45be4 --- /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 differences as they appear: + +`watch -d {{ls -l}}`