watch Linux Commands

What is Linux watch Command?


watch COMMAND:

watch command executes the program/process at the specified time interval. If the time interval is not set, then it will execute the command every two seconds.


watch [options] command options


-n n seconds is the specified interval to run the program.
-d Highlight the differences between successive updates.
-h Display Help.
-v,--version Display version.


  1. watch -n 3 date
    Above command updates the time zone for every three seconds.
    Mon Dec 2 19:08:59 IST 2013
    Mon Dec 2 19:08:56 IST 2013
    Hence this command helps you to compare the results between the time intervals.

Ask Questions

Ask Question