Cron Expression Descriptor & Translator
Convert cryptic Unix crontab strings into friendly, human-readable English schedules. Verify execution timing, inspect individual fields, and prevent scheduling mistakes.
Next 5 Projected Execution Timestamps (Local Timezone):
UTCComplete Crontab Entry Generator:
crontab -e):*/15 * * * * /usr/bin/python3 /var/www/script.py >> /var/log/cron.log 2>&1The Complete Guide to Cron Expressions & Crontab Management
01.The 5 Standard Unix Cron Fields
Traditional POSIX crontab files consist of 5 time and date fields followed by the command string to execute:
Note on Sunday: In standard Linux cron (vixie-cron / cronie), both 0 and 7 represent Sunday.
02.Special Cron Operators: * / , -
Four primary operators allow expressive schedule configuration:
- Asterisk (
*): Wildcard matching every possible value in that field. - Slash Step (
*/N): Step intervals. For instance,*/10in the minute field triggers at :00, :10, :20, :30, :40, :50. - Comma (
,): Discrete list of values. For example,1,15,30matches day 1, 15, and 30 of the month. - Hyphen (
-): Contiguous range. For instance,1-5in the weekday field matches Monday through Friday.
03.Essential Crontab CLI Commands
Manage user cron tables via the terminal without manually editing system spool directories:
crontab -e– Open the active user crontab in your default editor ($EDITOR).crontab -l– Display currently scheduled cron entries to terminal stdout.crontab -r– Caution! Deletes the user crontab without confirmation.sudo crontab -u www-data -e– Edit jobs for a specific system user account.
04.The #1 Cron Pitfall: Minimal Environment & PATH
The single most frequent reason cron jobs fail silently in production is environment differences.
When running a command interactively in your shell, .bashrc or .zshrc populates your rich $PATH and variables like NODE_ENV.
Cron, however, launches subshells with a bare-bones PATH=/usr/bin:/bin. Always specify absolute binary paths (e.g. /usr/bin/python3 instead of python3) and redirect stderr to a log file: >> /var/log/app.log 2>&1.