Chapter 14 Test Bank Crontab And At Rothwell - Answer Key + Test Bank | Linux Essentials 1e Rothwell by William Rothwell. DOCX document preview.
Linux Essentials for Cybersecurity (Rothwell/Kinsey)
Chapter 14 crontab and at
1) Any system user can create a(n) __________ entry that will result in a daemon executing a program on a routine basis.
A) crontab
B) at
C) system
D) table
2) Which of the following crontab command options is used to list the entries in the crontab file?
A) -r
B) -u
C) -l
D) -e
3) Which of the following crontab command options is used to specify a user account?
A) -r
B) -u
C) -l
D) -e
4) Each line of the crontab table is broken into fields, separated by one or more __________ characters.
A) colon
B) space
C) semicolon
D) asterisk
5) Which field of the crontab table can include only values between 0 and 7?
A) 4
B) 3
C) 1
D) 5
6) To create a crontab entry, execute the crontab command with the __________ option.
A) -l
B) -r
C) -e
D) -u
7) Each user has their own collection of crontab entries that only the root user has access to. These files are typically located in which of the following directories?
A) /var/spool/cron
B) /etc/cron.deny
C) /etc/crontab
D) /etc/cron.allow
8) The system administrator edits the __________ file to enable executing system-critical processes at specific intervals.
A) /var/spool/cron
B) /etc/cron.deny
C) /etc/crontab
D) /etc/cron.allow
9) All users listed in the __________ file are denied access to the crontab command while all other users can execute the crontab command successfully.
A) /var/spool/cron
B) /etc/cron.deny
C) /etc/crontab
D) /etc/cron.allow
10) Use the __________ file when you want to allow access to a few users but deny access to most users.
A) /var/spool/cron
B) /etc/cron.deny
C) /etc/crontab
D) /etc/cron.allow
11) Which field of the /etc/crontab file includes the name of the command to execute?
A) 6
B) 2
C) 7
D) 4
12) Most default /etc/crontab files are designed to execute the __________ script.
A) run-parts
B) www-data
C) sync
D) None of the above
13) The /etc/anacrontab file is used by the __________ command to determine how to execute commands that were missed by the crond daemon while a system was shut down.
A) crontab
B) tab
C) etc
D) anacron
14) Which field of the /etc/anacrontab file contains the command that should be executed?
A) 2
B) 4
C) 1
D) 3
15) The __________ system provides users with a way to execute a program at one specific time in the future.
A) crontab
B) anacron
C) at
D) time
16) The output for the atq command includes which of the following?
A) User name
B) Job number
C) Date the command will execute
D) All of the above
17) Which of the following commands is used to remove an at job before it is executed?
A) atrm
B) atq
C) atr
D) atqt
18) Which of the following files are used to control access to the at command?
A) /etc/at.allow
B) /etc/at.deny
C) Both A and B
D) Neither A nor B
19) Which field of the /etc/anacrontab file contains the name of the command that was skipped?
A) 1
B) 3
C) 4
D) 2
20) Which field of the crontab table specifies the hour that a command should execute?
A) 6
B) 2
C) 3
D) 1
Document Information
Connected Book
Answer Key + Test Bank | Linux Essentials 1e Rothwell
By William Rothwell