Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to schedule a job to run every minute.
Linux CLI
* * * * [1] /path/to/script.sh Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '/' or '-' in the day of week field without proper context.
Leaving the field empty.
✗ Incorrect
The last field in crontab is the day of the week. Using '*' means every day of the week.
2fill in blank
mediumComplete the code to schedule a job to run at 3:30 AM every day.
Linux CLI
[1] 3 * * * /path/to/script.sh
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping minutes and hours.
Using '*' instead of specific numbers.
✗ Incorrect
The first field is minutes. To run at 3:30 AM every day, minutes should be 30 and hours 3. The blank is for minutes, so fill it with 30. The full crontab entry is '30 3 * * * /path/to/script.sh'.
3fill in blank
hardFix the error in the crontab line to run a job every 5 minutes.
Linux CLI
*/[1] * * * * /path/to/script.sh Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Putting '*/5' inside the blank, which duplicates the '*/' prefix.
Using 0 or 1 which do not mean every 5 minutes.
✗ Incorrect
To run a job every 5 minutes, use '*/5' in the minutes field. Since the code already has '*/{{BLANK_1}}', the blank should be '5' to form '*/5'.
4fill in blank
hardFill both blanks to schedule a job to run at 2:15 PM on weekdays (Monday to Friday).
Linux CLI
15 [1] * * [2] /path/to/script.sh
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 2 instead of 14 for hour.
Using 0-6 for weekdays instead of 1-5.
✗ Incorrect
The hour field for 2 PM is 14 (24-hour clock). The day of week field for Monday to Friday is '1-5'.
5fill in blank
hardFill all three blanks to schedule a job to run at 11:45 PM on the 1st day of every month in January, March, and May.
Linux CLI
[1] [2] [3] 1,3,5 * /path/to/script.sh
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 11 instead of 23 for hour.
Using 0 for day of month instead of 1.
✗ Incorrect
Minutes is 45, hour is 23 (11 PM), day of month is 1.