The watch command

execute a program periodically, showing output fullscreen 1 example from the lessons of the IVski Linux Playground — try them in the terminal next to them.

Options in the examples

-h, --help
Display help text and exit.
-n, --interval seconds
Specify update interval. The command will not allow quicker than 0.1 second interval, in which the smaller values are converted.

Examples

watch -n 5 free -h

Lessons that use watch