201-450 Exam QuestionsBrowse all questions from this exam

201-450 Exam - Question 28


FILL BLANK -

Which directory contains system-specific systemd unit files? (Specify the full path to the directory.)

Show Answer
Correct Answer:

The directory that contains system-specific systemd unit files is /lib/systemd/system. This directory is reserved for unit files provided by installed packages. These files are essential for the system's operation and should not be edited directly by the system administrator as they may get overwritten by package updates. The correct full path to the directory is: /lib/systemd/system.

Discussion

5 comments
Sign in to comment
milan92stankovic
Jan 19, 2021

/lib/systemd/system - 100%

Brunfthuf
Jun 29, 2023

minus 100 %, yeah.

bluepenguin
Mar 27, 2022

/usr/lib/systemd/system should be correct, too.

Brunfthuf
Jun 29, 2023

the preferred path is /etc/system/systemd "+ 100 %"

Brunfthuf
Jun 29, 2023

sry /etc/systemd/system :-)

rmmichael95
Aug 15, 2023

/lib/systemd/system for system specific files and /etc/sytemd/system for user files

SDXIN
Mar 19, 2024

[/usr]/lib/systemd/system/ The expectation is that `/lib/systemd/system` is a directory that should only contain systemd unit files which were put there by the package manager (YUM/DNF/RPM/APT/etc). Files in /etc/systemd/system are manually placed here by the operator of the system for ad-hoc software installations that are not in the form of a package. This would include tarball type software installations or home grown scripts. https://unix.stackexchange.com/questions/206315/whats-the-difference-between-usr-lib-systemd-system-and-etc-systemd-system

SDXIN
Mar 19, 2024

The directory that contains system-specific systemd unit files is /etc/systemd/system/. This directory is reserved for unit files created or customized by the system administrator. The /lib/systemd/system/ directory, on the other hand, is for unit files provided by installed packages. These files should not be edited directly, as they may be overwritten by package updates. Instead, administrators can override these unit files by creating corresponding files in the /etc/systemd/system/ directory.