Questions
- How would you do a partial edit of the
ssh.service
file?a)
sudo systemctl edit --partial ssh.service
b)
sudo systemctl edit ssh.service
c)
sudo systemedit ssh.service
d)
sudo systemedit --partial ssh.service
- How would you create a brand-new service?
a)
sudo systemctl edit --new newservice.service
b)
sudo systemctl edit --full newservice.service
c)
sudo systemctl edit --full --force newservice.service
d)
sudo systemctl edit newservice.service
- How would you create an access whitelist for a service?
a) Just insert an
IPAddressAllow=
directive into the[Service]
section.b) Insert both an
IPAddressAllow=
directive and anIPAddressDeny=
directive in the[Service]
section.c) Just insert an
IPAddressAllow=
directive into the[Unit]
section.d) Insert both an
IPAddressAllow=
directive and anIPAddressDeny=
directive in the[Unit]
section.