watch
ShellFundamentals In real LinuxRun a command repeatedly and show its output
Name: watch
This command needs a real Linux system; you can practise it in real Linux mode.
Description
watch reruns a command every interval (2 seconds by default) and shows the latest output full-screen, ideal for watching changing state such as disk space, processes or a directory. -d highlights what changed.
Syntax
watch [OPTION]... COMMANDCommon options
| -n / --interval SECONDS | Interval in seconds (default 2) |
| -d / --differences | Highlight differences |
| -t / --no-title | Leave out the title line |
| -g / --chgexit | Quit as soon as the output changes |
| -c / --color | Show colours |