watch runs commands repeatedly – execute a program periodically

In this article we are going to learn about watch command. Watch runs commands repeatedly. How this watch command is helpful for us..?

When you would like to run one command multiple times by giving intervals, watch is ultimate solution for you. watch runs command repeatedly, displaying its output and errors. This allows you to watch the program output change over time. By default, the program is run every 2 seconds. By default, watch will run until interrupted.

Watch runs commands repeatedly

Check with date command as date updates at every second. If you use option -d along with watch command data update will be highlighted.