Chapter 4 Flashcards
In what directory are user’s active crontab files stored?
/var/spool/cron
Where is the active crontab file for the root user stored?
/var/spool/cron/root
Which field of valid line in the system crontab file specifies which user the command should run as?
The sixth field
The crond daemon must be restarted after which of the following actions for the action to take effect?
None of the above requires that the crond daemon be restarted.
Use the following /etc/cron.d/ file to answer the next 2 questions.
01 * * * * elvis run-parts /etc/crontab
0 1 * * 0 root /usr/sbin/raid-check
-
When will the raid-check job execute?
At 1:00 in the morning every Sunday
What configuration error is contained in the first relevant line?
The file /etc/crontab is a regular file, not a directory
Which of the following commands would instantly stop all cron jobs from executing?
service crond stop
What type of files would you expect to find in the /etc/cron.weekly/ directory?
Executable shell scripts
What type of files would you expect to find in the /etc/cron.d/ directory?
Text files containing crontab syntax
What is the smallest resolution which can be used for specifying the frequency of a cron job?
minutes