Cheat Sheet
The commands you keep forgetting, with a one-line description and a real example you can copy - 629 across 38 tools. Pick a tool in the sidebar, or search across all of them.
Showing cron (Scheduling). Choose another tool in the sidebar, or search all 629 commands.
cron (Scheduling)
Schedule recurring jobs. Five fields: minute hour day-of-month month day-of-week.
| Command | What it does | Example |
|---|---|---|
the fields | min(0-59) hour(0-23) dom(1-31) mon(1-12) dow(0-6, 0=Sun). | * * * * * command |
* * * * * | Every minute. | * * * * * /usr/bin/health.sh |
*/5 * * * * | Every 5 minutes. | */5 * * * * sync.sh |
0 * * * * | Every hour, on the hour. | 0 * * * * rotate-logs.sh |
0 9 * * * | Every day at 09:00. | 0 9 * * * report.sh |
30 2 * * * | Every day at 02:30. | 30 2 * * * db-backup.sh |
0 9 * * 1 | Every Monday at 09:00. | 0 9 * * 1 weekly.sh |
0 0 1 * * | First day of every month. | 0 0 1 * * invoice.sh |
@reboot | Once, at system startup. | @reboot /home/ana/start.sh |
@daily | Shorthand for once a day at midnight. | @daily backup.sh |
crontab -e | Edit your crontab. | crontab -e |
crontab -l | List your scheduled jobs. | crontab -l |