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)
Click on the arrows to vote for the correct answer
A. B. C. D.BD
The cron daemon is a time-based job scheduler in Linux that executes tasks (commands or scripts) at specified times or intervals. Each user can have their own individual crontab file, as well as a global system-wide /etc/crontab file.
The /etc/crontab file is a global configuration file that contains system-wide jobs that run as a specific user. It has six fields separated by whitespace or tabs that define the schedule and command to be executed:
sqlMinute Hour Day_of_Month Month Day_of_Week User Command
The user-specific crontab files are located in the /var/spool/cron directory and can be edited by the crontab command. They have the same six fields as the /etc/crontab file but do not include the user field, as it is determined by the system based on the owner of the crontab file.
Now, let's look at the answer options:
A. Year: The year field is not available in the user-specific crontab files. It is only available in the global /etc/crontab file to allow system administrators to schedule jobs that run on a specific year.
B. Minute: The minute field is available in both the global /etc/crontab file and the user-specific crontab files. It specifies the minute at which the command should be executed.
C. Username: The username field is not available in the user-specific crontab files since it is implied by the owner of the crontab file. It is only available in the global /etc/crontab file.
D. Command: The command field is available in both the global /etc/crontab file and the user-specific crontab files. It specifies the command or script to be executed at the scheduled time.
Therefore, the correct answers are B. Minute and D. Command.