QuizzesCron, at & Automation — Concept Check
intermediate
linux

Cron, at & Automation — Concept Check

Questions on Cron, at & Automation. cron runs commands on a schedule; at runs a command once at a specified future time. These are the standard Linux tools for backup jobs, report generation, and routine maintenance.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Cron, at & Automation — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A system administrator schedules a backup job using cron with the entry '0 2 * * 0 /opt/scripts/backup.sh'. When will this job run?

    • AEvery Sunday at 2:00 PM
    • BEvery Sunday at 2:00 AM
    • CEvery hour on Sundays
    • DEvery day at 2:00 AM
  2. 2.A developer notices that their cron job isn't executing as expected. The crontab entry is '0 9 * * * myscript.sh'. What is a likely reason for the failure?

    • AThe script path is incorrect
    • BThe script lacks execute permissions
    • CThe script is not in the PATH
    • DThe cron daemon is not running
  3. 3.Which of the following cron entries will run a script every weekday at 5 PM?

    • A0 17 * * 1-7
    • B0 5 * * 1-5
    • C0 17 * * 0,6
    • D0 17 * * 1-5
  4. 4.An engineer wants to schedule a script to run every 5 minutes. Which of these entries is correct?

    • A*/5 0 * * *
    • B5 * * * *
    • C*/5 * * * *
    • D5/1 * * * *
  5. 5.A user edits their crontab and adds the line '@daily /opt/scripts/daily-task.sh'. What time will this script run?

    • AMidnight every day
    • B12:00 PM every day
    • CEvery day at 6 AM
    • DEvery day at 2 AM
  6. 6.Why might a cron job fail to execute if the crontab entry is '0 3 * * * /home/user/backup.sh'?

    • AIncorrect time format
    • BThe script does not exist
    • CThe cron daemon is not installed
    • DThe script is not executable
  7. 7.A system administrator uses 'systemctl status cron' and finds the service is inactive. What should they do next?

    • ARestart the server
    • BReinstall the cron package
    • CCheck crontab syntax
    • DStart the cron service using 'systemctl start cron'
  8. 8.Which of the following is a feature of systemd timers that cron does not provide?

    • ALogging with journald
    • BEditing with crontab -e
    • CUsing absolute paths
    • DRunning scripts on a schedule