In SYSTEMD, what is the location for units created at runtime?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

In the context of SYSTEMD, the correct location for units created at runtime is /run/systemd/system. This directory is specifically utilized for transient units that are generated temporarily while the system is running, such as those created by system management tools or user commands.

The /run directory itself is a tmpfs filesystem which houses lifecycle data that should only exist for the duration of the boot. As such, anything within /run/systemd/system will vanish upon reboot, making it suitable for runtime-created units, as opposed to persistent configuration.

The other options refer to different directories that serve other purposes:

  • /usr/lib/systemd/system/ is where installed service unit files reside, usually provided by software packages.
  • /etc/systemd/system/ is for system administrators to place their own custom unit files that override those found in /usr/lib/systemd/system/.
  • /var/run/systemd/system/ is a legacy location that does not typically exist in modern Linux systems because /run has replaced /var/run for storing runtime data.

Understanding the unique purposes of these directories is essential for proper service management and unit file organization in a SYSTEMD environment.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy