View a markdown version of this page

/run (runtime data) - Amazon Linux 2027
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

/run (runtime data)

System components use the /run directory to store small amounts of runtime data, such as socket files. It is a tmpfs file system, writable only by privileged programs. The legacy /var/run path is a symbolic link to /run.

The /run/log directory can hold logs before they are written to /var/log, or before the /var/log file system is available.

The /run/user/ path contains per-user runtime directories: individual tmpfs file systems that systemd mounts when a user logs in and removes when the user logs out. Reference them through the $XDG_RUNTIME_DIR environment variable, as described in the XDG Base Directory Specification on the freedesktop.org website, not by literal path.