Drag steps to the numbered slots on the right, or tap a step then tap a slot.
LPIC-1 Linux Installation and Package Management Practice Question
Arrange the steps to schedule a cron job that runs a script every day at 2 AM.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
1. Execute `crontab -e` to open the user's cron file. 2. Add the line `0 2 * * * /path/to/script` to the file. 3. Save and exit the editor. 4. Verify the cron job with `crontab -l`.
Crontab -e opens the user's cron file; the syntax minute hour day month weekday command must be correct.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
1. Execute `crontab -e` to open the user's cron file. 2. Add the line `0 2 * * * /path/to/script` to the file. 3. Save and exit the editor. 4. Verify the cron job with `crontab -l`.
Why this is correct
This is the correct order because you first open the crontab, add the entry with the correct syntax (minute hour day month weekday command), save, then verify.
- ✗
1. Execute `crontab -e` to open the user's cron file. 2. Save and exit the editor. 3. Add the line `0 2 * * * /path/to/script` to the file. 4. Verify the cron job with `crontab -l`.
Why it's wrong here
This is incorrect because you cannot add a line after saving and exiting; you would need to reopen the crontab.
- ✗
1. Verify the cron job with `crontab -l`. 2. Execute `crontab -e` to open the user's cron file. 3. Add the line `0 2 * * * /path/to/script` to the file. 4. Save and exit the editor.
Why it's wrong here
This is incorrect because verifying before editing is pointless; the job hasn't been added yet.
- ✗
1. Add the line `0 2 * * * /path/to/script` to the file. 2. Execute `crontab -e` to open the user's cron file. 3. Save and exit the editor. 4. Verify the cron job with `crontab -l`.
Why it's wrong here
This is incorrect because you cannot add a line to the file before opening it with `crontab -e`.
Go deeper
Related to this question
About these practice questions
This LPIC-1 question is part of Courseiva's 527-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.