1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/watch.md
2022-06-21 09:04:26 -03:00

20 lines
467 B
Markdown

# watch
> Execute a program periodically, showing output fullscreen.
> More information: <https://manned.org/watch>.
- 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}}`
- Repeatedly run a pipeline and show the result:
`watch '{{command_1}} | {{command_2}} | {{command_3}}'`