Reference

Cheat Sheet

The commands you keep forgetting, with a one-line description and a real example you can copy - 384 across 26 tools. Pick a tool in the sidebar, or search across all of them.

cron (Scheduling)

Schedule recurring jobs. Five fields: minute hour day-of-month month day-of-week.
CommandWhat it doesExample
the fieldsmin(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 * * 1Every Monday at 09:00.0 9 * * 1 weekly.sh
0 0 1 * *First day of every month.0 0 1 * * invoice.sh
@rebootOnce, at system startup.@reboot /home/ana/start.sh
@dailyShorthand for once a day at midnight.@daily backup.sh
crontab -eEdit your crontab.crontab -e
crontab -lList your scheduled jobs.crontab -l