whatis cron

Cron

Also known as: crontab, cron job

The classic Unix scheduler that runs commands at fixed times using five-field schedule expressions in a crontab file.

What Is Cron in Linux?

A crontab line has five time fields (minute, hour, day of month, month, day of week) followed by the command. 0 3 * * * means 03:00 every day. Edit your own with crontab -e; system jobs live in /etc/crontab and /etc/cron.d/.

Cron runs jobs with a minimal environment, so full paths and explicit PATH settings avoid most "works in my shell, fails in cron" problems. Many systems now use systemd timers instead, which add logging and missed-run catch-up.

Example

# m h dom mon dow command
0 3 * * 0 /usr/local/bin/backup.sh