Scheduling jobs to run unattended
Lesson 2 of 3 in objective 107. Administrative tasks, part of LPIC-1 Exam 102-500.
- Objective
- 107. Administrative tasks
- Share of the exam
- 20% (the whole objective)
- Questions in this lesson
- 9
- Signed for by a person
- 0
Partly checked. None of the 9 questions here has been read against the cited source by a person. 9 questions have been checked against their cited clause by an automated pass — which is not the same thing, and is not a signature.
Only questions a person has signed for are used in mock exams here. That is the whole difference between the two kinds of checking above.
Questions in this lesson
- Which user crontab line runs /usr/local/bin/backup.sh at 03:30 every day? machine-checked
- A crontab line begins with the fields `*/10 8-17 * * 1-5`. When does the job run? machine-checked
- Select the TWO statements that correctly describe system crontabs (/etc/crontab and files under /etc/cron.d) compared with per-user crontabs. machine-checked
- You meant to edit your personal crontab but typed `crontab -r`. What happened? machine-checked
- As root, list the contents of the user bob's personal crontab without editing it. Type the complete command. machine-checked
- A single report must be generated once, at 22:00 tonight, and never again. Which approach fits best? machine-checked
- A laptop is powered off most nights, so the nightly maintenance jobs scheduled by plain cron never run. Which mechanism is designed to catch up such missed periodic jobs after the machine is next started? machine-checked
- On a systemd system you have created /etc/systemd/system/backup.timer containing a [Timer] section with `OnCalendar=*-*-* 03:30:00`. What else is required, and what does that OnCalendar value mean? machine-checked
- /etc/cron.allow exists on a host and contains only the line `alice`. /etc/cron.deny exists too and lists `bob`. Which users may run crontab? machine-checked
Drill this lesson
A lesson is one sitting: the trainer draws a short run from these questions alone and spaces the ones you get wrong.
Practise Scheduling jobs to run unattended
The rest of objective 107
- User and group accounts
- Scheduling jobs to run unattended — you are here
- Locales, character encodings and time zones