> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO : Run commands at regular intervals in Linux
- URL: https://kudithipudi.org/how-to-run-commands-at-regular-intervals-in-linux/
- Published: 2010-08-07T02:07:29.000Z
- Updated: 2010-08-07T02:07:29.000Z
- Description: There are several ways to run commands repetively in Linux.. (cron, while loop etc). Here is a simple trick. Say you want to check the size...
- Author: admin
- Tags: HOWTO, Linux, Technology, Uncategorized, #wp, #wp-post, #Import 2026-08-23 02:32

There are several ways to run commands repetively in Linux.. (cron, while loop etc). Here is a simple trick. Say you want to check the size of a directory using “du” every 5 seconds, you can use the following command  
`[bash]watch -n 5 du -ch[/bash]`

Check out all the options available in watch by running “man watch” :).