Table of Contents

Name

watch - watch a program with update intervals

Synopsis

watch [-n] seconds program [ args ... ]

Description

watch is a curses(3X) based program that allows you to watch a program as it changes. By default, it updates itself every 2 seconds. You can specify the number of seconds with the -n option. The curses packages allows for quick updating of the screen through cursor optimization. The program will end with a keyboard interrupt, which will leave the screen in a valid yet cleared state.

Example

try:

On BSD:
watch -n 1 ps u
On System V:
watch -n 1 ps -f

See Also

curses(3X)

Printed 11/8/90 1


Table of Contents