Lazo Lab Sign up

Linux & the Command Line / Servers and scripts

Lesson 29 of 30

Scheduling with cron

cron runs commands on a schedule. Edit your schedule with crontab -e. The five fields are minute, hour, day, month and weekday.

Key points

  • crontab -e edits
  • 0 3 * * * runs at 3:00 every day
  • crontab.guru explains schedules
0 3 * * * /home/fahad/backup.sh
Watch a video on thisOpens YouTube search results for “Scheduling with cron” in a new tab

Quiz · +10 XP

What does 0 3 * * * mean in cron?

Log in to save progress and earn XP.