LFCS · Question #520
LFCS Question #520: Real Exam Question with Answer & Explanation
The correct answer is B: A normal crontab file must be installed with the crontab command.. The /etc/crontab file differs from a normal user crontab by including a user field for commands and by being directly editable, whereas user crontabs are installed via the crontab command.
Question
How is the file format of /etc/crontab different from a normal crontab file? (Select TWO).
Options
- AThe /etc/crontab file can specify a year field.
- BA normal crontab file must be installed with the crontab command.
- CA normal crontab file allows for environment variable substitution.
- DThe /etc/crontab file has a user field for commands.
Explanation
The /etc/crontab file differs from a normal user crontab by including a user field for commands and by being directly editable, whereas user crontabs are installed via the crontab command.
Common mistakes.
- A. Neither
/etc/crontabnor a normal user crontab typically include a year field; cron jobs are scheduled based on the standard five time/date fields. - C. Both
/etc/crontaband normal user crontab files allow for environment variable substitution and definition within their respective formats.
Concept tested. Crontab file formats and management
Reference. https://man7.org/linux/man-pages/man5/crontab.5.html
Topics
Community Discussion
No community discussion yet for this question.