首页
首页 » 其它 » watch

watch


watch

watch [options] command [cmd_options]

Run the specified command repeatedly (by default, every two seconds) and display the output so you can watch it change over time. The command and any options are passed to sh -c, so you may need to use quotes to get correct results.

Options

-d, --differences[=cumulative]

Highlight changes between iterations. If cumulative is specified, the highlighting remains on the screen throughout, giving a cumulative picture of the changes.

-h, --help

Display help message and exit.

-n secs, --interval=secs

Run the command every secs seconds.

-t, --no-title

Do not display the header or the blank line following the header.

-v, --version

Print version information and exit.