LX0-104 · Question #113
Which of the following fields are available in both the global /etc/crontab file as well as in user- specific crontab files? (Select TWO correct answers)
The correct answer is B. Minute D. Command. Both the system-wide /etc/crontab and user-specific crontab files allow specifying Minute and Command fields to define when and what to execute.
Question
Options
- AYear
- BMinute
- CUsername
- DCommand
How the community answered
(25 responses)- A4% (1)
- B92% (23)
- C4% (1)
Why each option
Both the system-wide /etc/crontab and user-specific crontab files allow specifying Minute and Command fields to define when and what to execute.
The Year field is not a standard field in either /etc/crontab or user crontabs; cron schedules based on minute, hour, day of month, month, and day of week.
The Minute field is a fundamental part of cron scheduling, present in all crontab entries to specify the minute of the hour (0-59) a job should run.
The Username field is only present in /etc/crontab to specify which user executes the command; user-specific crontabs inherently run as that user.
The Command field is the actual shell command or script to be executed, which is the core purpose of any crontab entry, whether system-wide or user-specific.
Concept tested: Crontab file fields (system vs. user)
Source: https://linux.die.net/man/5/crontab
Topics
Community Discussion
No community discussion yet for this question.