---

How To Repeat A Command Every X Seconds On Linux

This article explains how to repeat a command every X seconds on Linux, in 2 ways: using watch, and using sleep in a while loop (with a way to avoid time drifting when using long-running commands).

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis