56.
Which of the following is not a recommended way to specify jobs that should
be executed with cron?
- A.Modify /etc/crontab.
- B.Put the jobs in separate scripts in /etc/cron.d.
- C.Use crontab -e to create user specific cron jobs.
- D.Put scripts in /etc/cron.{hourly|daily|weekly|monthly} for automatic execution.
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
Although cron jobs that are added to /etc/crontab will be executed, the /etc/crontab file is considered a system file that should not be modified directly. |
57.
Which service takes care of executing cron jobs in /etc/cron.hourly, cron.daily,
cron.weekly, and cron.monthly?
- A.cron
- B.crontab
- C.atd
- D.anacron
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
anacron is a service that takes care of executing jobs on a regular basis where it is not necessary to specify a specific time |
58.
Which of the statements about cron security is true?
- A.By default, all users are allowed to schedule tasks through cron because the /etc/cron.allow file has the keyword all in it.
- B.If the cron.deny file exists, a cron.allow file must be created also and list users who are allowed to schedule tasks through cron.
- C.For every user, a matching entry must exist in either the cron.allow file, or in the cron.deny file.
- D.If the cron.allow file exists, a user must be listed in it to be able to schedule jobs through cron.
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
By default, the cron.allow file does not exist. If it exists, a user must be listed in it in order to program cron jobs. |
59.
After entering commands in the at shell, which command enables you to close
the at shell?
- A.Ctrl+V
- B.Ctrl+D
- C.exit
- D.:wq
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
The Ctrl+D key sequence sends the end-of-file (EOF) character to the at shell and closes it. |
60.
Which command enables you to see current at jobs scheduled for execution?
- A.atrm
- B.atls
- C.atq
- D.at
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
The atq command queries the at service and provides an overview of jobs currently scheduled for execution. |