Options (4)
-n, --intervalbooleanRe-run a command every 60 seconds
Example:
watch {{[-n|--interval]}} 60 {{command}}-d, --differencesbooleanMonitor disk space, highlighting differences as they appear
Example:
watch {{[-d|--differences]}} df-g, --chgexitbooleanExit `watch` if the visible output changes
Example:
watch {{[-g|--chgexit]}} {{lsblk}}-c, --colorbooleanInterpret terminal control characters
Example:
watch {{[-c|--color]}} {{ls --color=always}}Examples (6)
Repeatedly run a pipeline and show the result
watch "command1 | command2 | command3"made by @shridhargupta | data from tldr-pages