How do I schedule a task to run daily/weekly/monthly on Ubuntu?

There are folders where you can place your script.

For hourly tasks:

/etc/cron.hourly

For daily tasks:

/etc/cron.daily

For weekly tasks:

/etc/cron.weekly

For monthly tasks:

/etc/cron.monthly

Leave a Reply

Your email address will not be published.