- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Configuring systemd Units
The base measure of systemd configuration is units—small and seemingly insignificant text files that follow the `.ini` file format of sections, values, and keys. These are arguably the most important files on a `systemd` system as they describe the configuration and behavior of all services, sockets, paths, mounts, and much more. In this lab, we'll be working with viewing unit file locations, the contents and makeup of typical unit files, and their status information. We'll then take a default service unit file and extend it with additional or contradictory settings, take the necessary steps to have the `systemd` daemon recognize the changes, and verify the changes to effect. **Bonus**: We'll also show how to easily and quickly undo the changes, such as if it were a temporary setting test.

Lab Info
Table of Contents
-
Challenge
View Unit File Location, Content, and Status
- View the unit file locations on the system.
- Look at the unit files in a systemd directory.
- View the contents of a unit file.
- Get the unit file status information.
-
Challenge
Extend a Service's Functionality and Revert to Default
- View a service unit file.
- Make an override to add an execution parameter to the unit file.
- Restart the service and the systemd daemon.
- Verify the changes took effect.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.