Which of the following statement is not correct with reference to cron daemon…

2016

Which of the following statement is not correct with reference to cron daemon in UNIX O.S. ?

  1. A.

    The cron daemon is the standard tool for running commands on a pre-determined schedule.

  2. B.

    It starts when the system boots and runs as long as the system is up.

  3. C.

    Cron reads configuration files that contain list of command lines and the times at which they invoked.

  4. D.

    Crontab for individual users are not stored.

Attempted by 36 students.

Show answer & explanation

Correct answer: D

Answer: The statement "Crontab for individual users are not stored." is not correct.

Reason: Cron maintains per-user crontab files and system crontabs, so individual user crontabs are indeed stored and read by the cron daemon.

  • "The cron daemon is the standard tool for running commands on a pre-determined schedule." — Correct. Cron is the typical scheduler used for this purpose.

  • "It starts when the system boots and runs as long as the system is up." — Generally correct. Cron is started during system initialization (for example via systemd or init) and runs while the system is up.

  • "Cron reads configuration files that contain list of command lines and the times at which they invoked." — Correct. Cron reads crontab files that map schedule fields to command lines.

  • "Crontab for individual users are not stored." — Incorrect. User crontabs are stored (commonly under /var/spool/cron or /var/spool/cron/crontabs) and can be edited with the crontab command; the cron daemon reads these files.

Additional note: System-wide crontab files (for example /etc/crontab) and per-user crontabs both coexist; the cron daemon consults these when scheduling jobs.

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…