nerdexam
CompTIA

LX0-104 · Question #256

Which of the following statements about crontab are true? (Select TWO).

The correct answer is A. Every user may have their own crontab. C. The cron daemon reloads crontab files automatically when necessary.. Each user on a Linux system can maintain their own crontab file, and the cron daemon periodically checks for and reloads these files automatically without requiring a restart.

Administrative Tasks

Question

Which of the following statements about crontab are true? (Select TWO).

Options

  • AEvery user may have their own crontab.
  • BChanging a crontab requires a reload/restart of the cron daemon.
  • CThe cron daemon reloads crontab files automatically when necessary.
  • Dhourly is the same as "0 * * * *".
  • EA cron daemon must run for each existing crontab.

How the community answered

(38 responses)
  • A
    95% (36)
  • B
    3% (1)
  • D
    3% (1)

Why each option

Each user on a Linux system can maintain their own crontab file, and the cron daemon periodically checks for and reloads these files automatically without requiring a restart.

AEvery user may have their own crontab.Correct

Linux systems allow individual users to schedule their own jobs via `crontab -e`, creating a per-user crontab file.

BChanging a crontab requires a reload/restart of the cron daemon.

The cron daemon automatically reloads crontab files upon changes, so a manual reload or restart is not required.

CThe cron daemon reloads crontab files automatically when necessary.Correct

The cron daemon is designed to automatically detect changes in crontab files and reload them, eliminating the need for manual restarts.

Dhourly is the same as "0 * * * *".

`0 * * * *` means "at minute 0 past every hour," which is a specific time, while `hourly` implies execution at a certain interval but is not a direct crontab syntax keyword for user crontabs.

EA cron daemon must run for each existing crontab.

A single cron daemon process manages all user and system crontab files, not one daemon per crontab.

Concept tested: crontab user management and daemon behavior

Source: https://www.man7.org/linux/man-pages/man5/crontab.5.html

Topics

#crontab#cron daemon#scheduled tasks#job scheduling

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice