Home > Articles

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Review Questions

The questions that follow are meant to help you test your knowledge of concepts and terminology and the breadth of your knowledge. You can find the answers to these questions in Appendix A.

  1. What is a unit?

  2. Which command enables you to make sure that a target is no longer eligible for automatic start on system boot?

  3. Which configuration file should you modify to apply common changes to GRUB 2?

  4. Which command should you use to show all service units that are currently loaded?

  5. How do you create a want for a service?

  6. How do you switch the current operational target to the rescue.target?

  7. Why can it happen that you get the message that a target cannot be isolated?

  8. You want to shut down a Systemd service, but before doing that you want to know which other units have dependencies to this service. Which command would you use?

  9. What is the name of the GRUB 2 configuration file where you apply changes to GRUB 2?

  10. After applying changes to the GRUB 2 configuration, which command should you run?

Answer

  1. A unit is a thing that is started by systemd. There are different types of units, such as services, mounts, sockets, and many more.

  2. Use systemctl mask to make sure that a target is no longer eligible for automatic start on system boot.

  3. Modify /etc/default/grub to apply common changes to GRUB 2.

  4. systemctl --type=service shows all service units that are currently loaded.

  5. Create a want for a service by using systemctl enable on that service.

  6. systemctl isolate rescue.target switches the current operational target to the rescue target.

  7. There are two types of targets: targets that can run independently and targets that cannot. Check the target unit file to find out more about this and ensure the target is isolatable (which means it can run independently).

  8. systemctl list-dependencies --reverse shows which other units have dependencies to a systemd service.

  9. Apply changes to GRUB 2 in /etc/default/grub.

  10. Run grub2-mkconfig > /boot/grub2/grub.cfg after applying changes to the GRUB 2 configuration.

  • + Share This
  • 🔖 Save To Your Account