Cron Schedule Examples — 30+ Common Cron Expressions
Ready-to-use cron expressions for every common schedule: every 5 minutes, hourly, daily, weekly, monthly, and more.
Last updated:
Frequently Asked Questions
What is the cron expression for every 5 minutes?
Use */5 * * * *. The */5 in the minute field means every 5th minute. The asterisks mean every hour, every day, every month, every weekday.
What is the cron expression for daily at midnight?
Use 0 0 * * *. The 0 in the minute field and 0 in the hour field means midnight (00:00). The asterisks mean every day, every month, every weekday.
How do I run a cron job only on weekdays?
Set the day-of-week field (5th field) to 1-5 for Monday through Friday. Example: 0 9 * * 1-5 runs at 9:00 AM Monday through Friday.
Related Guides
Guide
GitHub Actions: The Complete CI/CD Guide for Developers
Master GitHub Actions CI/CD: workflow syntax, triggers, matrix builds, reusable workflows, composite actions, caching, secrets, security hardening, and performance optimization.
Guide
The Dark Factory Pattern Part 3: Spec-Driven Development
Master spec-driven development: write precise specifications, implement holdout scenarios as quality gates, build evaluation pipelines, and transition from human code review to automated auto-merge.
Guide
The Dark Factory Pattern Part 2: AI Dev Foundation
Hands-on guide to setting up your coding agent, writing a production-grade AGENTS.md, decomposing tasks for AI delegation, and building feedback loops that improve agent output over time.
Related Cheatsheets
Bash Scripting Cheat Sheet
Quick reference for Bash scripting: variables, parameter expansion, conditionals, loops, functions, arrays, redirection, error handling, and strict mode.
tmux Cheat Sheet — Sessions, Windows, Panes & Copy Mode
Quick reference for tmux: sessions, windows, panes, copy mode, resizing, synchronize panes, configuration, and keybindings.
curl Cheat Sheet — HTTP Requests & API Testing
Quick reference for curl: GET/POST requests, headers, cookies, authentication, file uploads and downloads, debugging, TLS, proxies, and scripting patterns.