How to automate running of scripts using cron jobs

Hello everyone

I would like learn how to run jobs automatically using cron jobs and startup jobs or processes. I have been learning shell scripting and now i want to execute some scripts hourly, daily, weekly and some as startup jobs.

How can i be able to do this?

Thanks in advance.

If you want to execute scripts hourly, daily, weekly or monthly. Go for these folders:

/etc/cron.hourly
/etc/cron.daily
/etc/cron.weekly
/etc/cron.monthly

If you want to execute scripts at specific times in specific days execute this command:
crontab -e

Good luck :smile:

1 Like