Problem Statement
Explain the five fields of a cron job expression.
Explanation
A cron expression has five fields: minute, hour, day of month, month, and day of week.
For example, 0 3 * * 1 means run every Monday at 3 AM. Use @daily or @reboot for predefined schedules.
Code Solution
SolutionRead Only
0 3 * * 1 /scripts/cleanup.sh
Practice Sets
This question appears in the following practice sets: