Crontab Generator
⚙️
// automation_task.sh
CRONTAB GENERATOR
* * * * *
Console: Expression generated for Linux/Unix crontab.
- * : Any value
- , : Value list separator
- - : Range of values
- / : Step values
How to use this Cron Job?
After generating your expression, you can add it to your system by typing crontab -e in your terminal. This opens your user's crontab file, where you can paste the expression followed by the path to the script you want to run.
// Example: Run backup every weekday at 10 PM
0 22 * * 1-5 /home/user/scripts/backup.sh
Crontab Syntax Reference
The order of fields in a cron expression is crucial:
| Field | Description | Values |
|---|---|---|
| Minute | Minutes past the hour | 0 - 59 |
| Hour | Hours of the day | 0 - 23 |
| Day | Day of the month | 1 - 31 |
| Month | Month of the year | 1 - 12 |
| Weekday | Day of the week | 0 - 6 (0 is Sunday) |