Chapter 1
System Management
Course: Comptia Linux Xk0 006
Subject: Comptia Linux Xk0 006
Chapter: Troubleshooting
systemd is the standard system and service manager on most modern Linux distributions. It is responsible for initializing the system during boot, managing services, handling mounts and timers, and providing tools for troubleshooting system states.
1. Unit Files
systemd uses unit files to manage different resources. Unit files are plain text files located in directories such as /etc/systemd/system/, /lib/systemd/system/, and /run/systemd/system/.
Each unit type has a different suffix (.service, .timer, .mount, .target, etc.) and a specific purpose.
1. Service Units
.service unit files in systemd define long-running processes or daemons that the system should manage, such as web servers, background schedulers, database servers, or network services. These unit files are typically stored in one of the following locations:
- /etc/systemd/system/ (local custom services)
- /lib/systemd/system/ (system-provided services)
- /run/systemd/system/ (runtime temporary units)