11 Dez 2020 How To Repeat A Command Every X Seconds On Linux by Ricardo Simões | posted in: Linux, Tutorials | 0 Source: 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 drift when using long-running commands).