QuestionQ118

VerifiedEssential Commands

Which fields exist in both the system-wide /etc/crontab file and in individual user crontab files? (Select TWO correct answers)

Choose two
Explanation

Cron entries in both /etc/crontab and user crontabs share the same five time-specification fields (minute, hour, day of month, month, day of week) and a trailing command field. The /etc/crontab file inserts an additional 'username' field (specifying which user account runs the job) between the time fields and the command—this field is unique to /etc/crontab and cron.d files, since user crontabs implicitly run as their owner and omit it. There is no 'Year' field in the cron syntax at all. Thus, the fields present in both formats are Minute and Command.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!