Problem Statement
Explain the five fields in a crontab schedule expression.
Explanation
Crontab syntax uses five fields: minute, hour, day of month, month, and day of week.
For example, 0 3 * * 1 means run every Monday at 3 AM. Using */5 in a field sets the command to repeat every 5 units.
Code Solution
SolutionRead Only
0 3 * * 1 /scripts/cleanup.sh
Practice Sets
This question appears in the following practice sets: