Lpic 1 Linux Administrator · Free Practice Question Easy
Question 3
- A /etc/systemd/system
- B /usr/lib/systemd/system
- C /run/systemd/system
- D /etc/systemd/timers
- E /lib/systemd/system
Reveal correct answer
Correct answer: A
A. systemd.timer files should be placed in the /etc/systemd/system directory to correctly configure timer units in a Linux system. This directory is the standard location for system-specific unit files in systemd, including timer units.
B. Placing systemd.timer files in the /usr/lib/systemd/system directory is not the correct location for configuring timer units in a Linux system. This directory is typically used for vendor-supplied unit files and should not be modified for custom configurations.
C. The /run/systemd/system directory is used for runtime unit files that are dynamically created during system operation. Placing systemd.timer files in this directory is not recommended for configuring timer units as they may not persist across system reboots.
D. There is no specific /etc/systemd/timers directory for placing systemd.timer files in a Linux system. The correct directory for configuring timer units is /etc/systemd/system, where all systemd unit files, including timer units, should be placed.
E. Placing systemd.timer files in the /lib/systemd/system directory is not the correct location for configuring timer units in a Linux system. The standard location for systemd unit files, including timer units, is the /etc/systemd/system directory.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
