crontab

crontab commands cheatsheet.

Edit and list cron jobs, plus schedule examples and shorthand like @daily and @reboot. Tap to copy.

Managing crontabs
crontab -eEdit your crontab
crontab -lList your current cron jobs
crontab -rRemove your entire crontab (careful!)
crontab -u alice -eEdit another user's crontab (as root)
Schedule examples
* * * * * cmdRun every minute
*/10 * * * * cmdRun every 10 minutes
0 9 * * 1-5 cmdWeekdays at 9:00 AM
0 0 * * 0 cmdSundays at midnight
30 2 1 * * cmd2:30 AM on the 1st of each month
Shorthand strings
@reboot cmdRun once at startup
@hourly cmdRun at the top of every hour
@daily cmdRun once a day at midnight
@weekly cmdRun once a week
@monthly cmdRun once a month
Not sure what a schedule means? Paste it into the cron expression explainer to read it in plain English.

Scheduling recurring jobs

cron runs commands automatically on a schedule — backups, cleanups, report generation, anything that should happen regularly without you. You manage your jobs with crontab -e to edit and crontab -l to list. Each line is a schedule followed by a command, and the schedule uses the familiar five-field cron syntax: minute, hour, day-of-month, month, day-of-week.

Shorthand and a word of care

For common cases there are readable shortcuts: @daily, @hourly, @weekly and the handy @reboot, which runs a command once when the machine starts. One caution: crontab -r deletes your entire crontab with no confirmation, and it sits right next to -e on the keyboard — so double-check before you press Enter. If a schedule string ever looks cryptic, the cron expression explainer will translate it for you.

FAQ

How do I edit my cron jobs?
Run crontab -e to open your crontab in an editor. Each line is a schedule followed by the command to run. Save and exit to install it.
What does @reboot do?
@reboot runs the command once each time the system starts up, which is useful for launching a service or script at boot.

More cheatsheets