14.12 References
- The system administrator of Company ABC needs to automatically run the
script /usr/local/bin/system.backup every Sunday morning at 1:00am. What line
should be added to the crontab of the root user to accomplish this task?
-
A:
- 0 1 * * 0 /usr/local/bin/system.backup
-
B.
- 1 0 * * 0 /usr/local/bin/system.backup
-
C.
- 0 1 * * 1 /usr/local/bin/system.backup
-
D.
- 1 0 * * 1 /usr/local/bin/system.backup
- The system administrator at XYZ Company has noticed peaks in system
activity occurring in the early evening on the development server. It is
suspected that this activity is being caused by users scheduling jobs to be run
via the at command. How can the system administrator find all jobs
currently scheduled to run via the at command?
-
A.
- lsat -l
-
B.
- at -l ALL
-
C.
- Browse the files in the /var/spool/at/atjobs directory
-
D.
- Browse the files in the /var/spool/cron/atjobs directory
- If a user runs the command crontab /tmp/mycron, what would be
the result of this command?
-
A.
- The user's crontab file would be replaced with the contents of /tmp/mycron.
-
B.
- The entries contained in /tmp/mycron would be appended to the user's
crontab file.
-
C.
- The current contents of the user's crontab file would be written to the
file /tmp/mycron.
-
D.
- An error message would be generated. This is not valid syntax for the
crontab.
- A
- D
- A
14.14 Exercises