LFCS · Question #70
Each entry in a crontab must end with what character?
The correct answer is D. Newline. Each entry in a crontab file, defining a scheduled job, must terminate with a newline character.
Question
Options
- ATab
- BSpace
- CBackslash
- DNewline
How the community answered
(24 responses)- C4% (1)
- D96% (23)
Why each option
Each entry in a crontab file, defining a scheduled job, must terminate with a newline character.
A tab character is used to separate fields within a crontab entry, not to terminate the entry itself.
A space character separates fields within a crontab entry, similar to a tab, but does not terminate the entry.
A backslash is generally used for escaping characters or line continuation in shell commands, not for terminating crontab entries.
In a crontab file, each individual cron job entry must be on its own line and terminated by a newline character. This is a fundamental syntax requirement for cron to correctly parse and execute the scheduled tasks.
Concept tested: Crontab entry syntax
Source: https://man7.org/linux/man-pages/man5/crontab.5.html
Topics
Community Discussion
No community discussion yet for this question.