Courseiva
Storage ManagementmediumDrag & DropObjective-mapped

LFCS Storage Management Practice Question

Order the steps to configure a cron job that runs a script every day at 2 AM.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

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

Step 1: Run 'crontab -e' to open the crontab editor. Step 2: Add the line '0 2 * * * /path/to/script'. Step 3: Save and exit the editor. Step 4: Run 'crontab -l' to verify the job is scheduled.

The correct order to configure a cron job is: open the crontab file with 'crontab -e', add the cron expression with the correct time fields (minute, hour, day, month, weekday) and the script path, save the file, and then verify with 'crontab -l'. Common mistakes include adding the line before opening the editor, saving before adding, or verifying before editing.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Step 1: Run 'crontab -e' to open the crontab editor. Step 2: Add the line '0 2 * * * /path/to/script'. Step 3: Save and exit the editor. Step 4: Run 'crontab -l' to verify the job is scheduled.

    Why this is correct

    This is the correct sequence. First, you open the crontab file for editing. Then you add the cron expression with correct time fields (minute 0, hour 2, then asterisks for day, month, weekday). After saving, you verify the job exists.

  • Step 1: Add the line '0 2 * * * /path/to/script' directly to the crontab. Step 2: Run 'crontab -e' to open the editor. Step 3: Save and exit the editor. Step 4: Run 'crontab -l' to verify.

    Why it's wrong here

    This is incorrect because you cannot add a line to the crontab without first opening it for editing. The crontab -e command must be run before any line addition.

  • Step 1: Run 'crontab -e' to open the editor. Step 2: Save and exit the editor immediately. Step 3: Add the line '0 2 * * * /path/to/script'. Step 4: Run 'crontab -l' to verify.

    Why it's wrong here

    This is incorrect because saving before adding the cron line means no job was added. You must add the line before saving.

  • Step 1: Run 'crontab -l' to verify existing jobs. Step 2: Run 'crontab -e' to open the editor. Step 3: Add the line '0 2 * * * /path/to/script'. Step 4: Save and exit.

    Why it's wrong here

    This is incorrect because verifying jobs before editing is not necessary and does not affect the configuration. The correct order is to edit first, then verify after saving.

About these practice questions

This LFCS question is part of Courseiva's 507-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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LFCS practice question is part of Courseiva's free Linux Foundation 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 LFCS exam.