mirror of https://github.com/CrimsonTome/tldr.git
16 lines
308 B
Markdown
16 lines
308 B
Markdown
|
# 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}}`
|