← All LFCS Certification Flashcard Decks

System Service Management (systemd) Flashcards

6 cards from real LFCS Certification practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 6 System Service Management (systemd) flashcards as text
  1. A web server unit named `apache2.service` is failing to start. A system administrator needs to view only the logs generated by this specific service from the systemd journal, starting from the most recent entries. Which command should they use?

    Answer: `journalctl -u apache2.service`

    The `journalctl -u` (or `--unit`) command is the standard way to filter the systemd journal to show logs for a specific unit. While `systemctl status` shows the last few log entries, `journalctl` provides the full history and more powerful filtering options.

  2. A system administrator has just installed a new database package. They need to ensure its service, `mariadb.service`, automatically starts every time the system boots. Which command will configure this behavior?

    Answer: `systemctl enable mariadb.service`

    The `systemctl enable ` command creates the necessary symbolic links in systemd's target directories to ensure the service is started automatically at boot. The `start` command only starts the service for the current session and does not persist through a reboot.

  3. To diagnose a slow boot process, an administrator wants to see a list of all services ordered by the time each one took to initialize. Which of the following commands provides this specific output?

    Answer: `systemd-analyze blame`

    The `systemd-analyze blame` command prints a list of all running units, sorted by the time they took to initialize during startup. This is the primary tool for identifying which specific services are taking the longest to start.

  4. An administrator needs to override a single directive in the `[Service]` section of the `httpd.service` unit file without altering the original vendor-provided file. Which command is the recommended method for creating a "drop-in" configuration snippet to accomplish this?

    Answer: `systemctl edit httpd.service`

    The `systemctl edit ` command is the best-practice method for creating an override file (or "drop-in" snippet). This command opens an editor and saves the changes in a file under `/etc/systemd/system/httpd.service.d/`, which overrides settings from the original unit file without modifying it. This prevents customizations from being lost during package upgrades.

  5. A system administrator must switch the running system from its current graphical target to a non-graphical, multi-user mode for maintenance, without rebooting. Which command will achieve this state change for the current session?

    Answer: `systemctl isolate multi-user.target`

    The `systemctl isolate ` command switches to a new target, starting all of its dependencies and stopping all units that are not dependencies of the new target. This effectively changes the system's state without a reboot. `set-default` only changes the target for future boots.

  6. When creating a custom systemd service file, which section contains the `WantedBy` directive, used by `systemctl enable` to link the service to a specific target like `multi-user.target`?

    Answer: `[Install]`

    The `[Install]` section of a unit file contains directives that are used when the unit is enabled or disabled. The `WantedBy` directive tells `systemctl enable` to create a symbolic link for this service within the specified target's `.wants` directory, causing it to start when that target is activated.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. docs.linuxfoundation.org — Renewal, score release, exam format, passing score · verified Oct 2026
  2. training.linuxfoundation.org — Test delivery, eligibility, fees, registration deadline, time limit, score validity · verified Oct 2026
System Service Management (systemd) Flashcards — LFCS Certification Study Cards with Answers