Chapter-8 (Controlling Services and Daemons)
Chapter-8 (Controlling Services and Daemons)
loaded?
A. systemctl --type=service
B. systemctl --type=service --all
C. systemctl --list-services
D. systemctl --show-units | grep services
ANSWER: A
You want to find out which other Systemd units have dependencies to a specific
unit. Which command would you use?
A. systemd list-dependencies --reverse
B. systemctl list-dependencies --reverse
C. systemctl status my.unit --show-deps
D. systemd status my.unit --show-deps -r
ANSWER: B
Which of the following is not a valid command while working with units in
systemctl?
A. systemctl unit start
B. systemctl status -l unit
C. systemctl mask unit
D. systemctl disable unit
ANSWER: A
What should you include to ensure that a unit file will automatically load another
unit file?
A. Requires
B. Requisite
C. Wants
D. Before
ANSWER: A
Which command will show available configuration options for the httpd.service unit?
A. systemctl show httpd
B. systemctl status httpd
C. systemctl httpd status
D. systemctl httpd show
ANSWER: A