tldr/pages/common/watch.md
Hayden Schiff 5faa753d8f watch: "changes"-->"differences"
per waldyrious' suggestion in comments of #707
2016-01-21 20:37:36 -05:00

312 B

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}}