/root (root user home directory) - Amazon Linux 2023

/root (root user home directory)

The home directory of the root user is the /root directory, purposefully separate from /home (User home directories) so that it is present in the event that /home (User home directories) is on a file system which is not available.

The best practice for configuring systemd services is the same for /root as it is for /home (User home directories).