Crontab Calculator
Parse cron expressions and calculate next execution times
Cron Expression Structure:
Minute0-59
Hour0-23
Day1-31
Month1-12
Weekday0-7
* any value
, list of values
- range of values
/ step values
How to Use
1
Enter Cron Expression
Type a cron expression in the input field. The standard cron format consists of 5 fields separated by spaces: minute hour day-of-month month day-of-week
2
Select from Examples
Click any of the common example buttons to quickly populate the input field with frequently used cron expressions.
3
View Execution Times
The tool automatically calculates and displays the next 10 scheduled execution times based on the provided cron expression.
Cron Service Commands
sudo systemctl start cron
Start the cron service
sudo systemctl stop cron
Stop the cron service
sudo systemctl restart cron
Restart the cron service
sudo systemctl status cron
Check cron service status
sudo systemctl enable cron
Enable cron to start on boot
sudo systemctl disable cron
Disable cron from starting on boot
Crontab Management Commands
crontab -e
Edit current user's crontab
crontab -l
List current user's crontab
crontab -r
Remove current user's crontab
crontab -i
Interactive mode (confirm before removal)
crontab -u <user> -l
List another user's crontab (requires sudo)
crontab -u <user> -e
Edit another user's crontab (requires sudo)
crontab -u <user> -r
Remove another user's crontab (requires sudo)
Environment Variables
Cron jobs run with a minimal environment. The PATH is often limited, so it's best to use absolute paths for commands. You can set environment variables at the top of your crontab file:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SHELL=/bin/bash
MAILTO=user@example.com
0 2 * * * /usr/bin/backup.sh