Crontab Cheat Sheet
A cron scheduling reference, the five time fields, field syntax, common schedule examples, the @hourly/@daily shortcuts, and how to manage your crontab.
Cron schedules commands on Unix/Linux. Each line in a crontab has five time fields
followed by the command to run. Edit your schedule with crontab -e and list it
with crontab -l.
The five fields
| Field | Range |
|---|---|
| Minute | 0–59 |
| Hour | 0–23 (24-hour clock) |
| Day of month | 1–31 |
| Month | 1–12 (or JAN–DEC) |
| Day of week | 0–6 (0 = Sunday, or SUN–SAT) |
Order: minute hour day-of-month month day-of-week command.
For example, 30 2 * * 1 /backup.sh runs at 02:30 every Monday.
Field syntax
| Symbol | Meaning |
|---|---|
* | Every value (every minute, hour, etc.) |
, | List, e.g. 1,15,30 |
- | Range, e.g. 9-17 |
/ | Step, e.g. */5 = every 5 |
Common schedules
| Expression | Runs |
|---|---|
* * * * * | Every minute |
*/15 * * * * | Every 15 minutes |
0 * * * * | Every hour, on the hour |
0 0 * * * | Every day at midnight |
0 9 * * 1-5 | 9:00 AM, Monday to Friday |
0 0 1 * * | Midnight on the 1st of each month |
0 0 * * 0 | Midnight every Sunday |
Shortcuts & managing cron
| Item | Meaning |
|---|---|
@hourly | Same as 0 * * * * |
@daily / @midnight | Same as 0 0 * * * |
@weekly | Same as 0 0 * * 0 |
@monthly | Same as 0 0 1 * * |
@reboot | Run once at startup |
crontab -e | Edit your crontab |
crontab -l | List your crontab |
crontab -r | Remove your crontab (careful) |
Cron runs with a minimal environment, so use full paths to commands and
redirect output to a log, e.g. * * * * * /usr/bin/job >> /var/log/job.log 2>&1.
A line must end with a newline or it may be ignored.
What this does
A crontab cheat sheet explains cron scheduling — the five time fields, field syntax, common examples, the @daily shortcuts, and how to manage your crontab.
How to use it
- Browse the field layout.
- Pick a schedule example.
- Copy it with one tap.
- Add your command after the times.
Example
0 9 * * 1-5 runs a job at 09:00 every weekday.
Sources & methodology
Last updated .
Frequently asked questions
What order are the cron fields in?
Minute, hour, day-of-month, month, day-of-week, then the command. For example, 30 2 * * 1 runs at 02:30 every Monday.
Why does my cron job not run?
Cron uses a minimal environment, so use absolute paths to commands and files. Redirect output to a log to capture errors, e.g. >> /var/log/job.log 2>&1.
How do I edit my schedule?
Run crontab -e to edit, crontab -l to list, and crontab -r to remove your crontab (be careful, it deletes all your entries).
Related tools
Git Cheat Sheet
The Git commands you use every day, setup, the add/commit/push workflow, branching and merging, working with remotes, and undoing mistakes safely.
Docker Cheat Sheet
A reference for everyday Docker, building and tagging images, running and managing containers, ports and volumes, system cleanup, and Docker Compose.
Vim Cheat Sheet
A reference for the Vim editor, modes, moving around, editing, search and replace, and saving or quitting, including the escape hatch for when you are stuck.
Regex Cheat Sheet
A regular-expression reference, character classes, anchors, quantifiers, groups and alternation, lookarounds, common ready-made patterns, and flags.