Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   tmpfiles.d    ( 5 )

конфигурация для создания, удаления и очистки летучих и временных файлов (Configuration for creation, deletion and cleaning of volatile and temporary files)

Технические характеристики (Specifiers)

Specifiers can be used in the "path" and "argument" fields. An
       unknown or unresolvable specifier is treated as invalid
       configuration. The following expansions are understood:

Table 1. Specifiers available ┌──────────┬────────────────────┬────────────────────────┐ │Specifier Meaning Details │ ├──────────┼────────────────────┼────────────────────────┤ │"%a" │ Architecture │ A short string │ │ │ │ identifying the │ │ │ │ architecture of │ │ │ │ the local system. │ │ │ │ A string such as │ │ │ │ x86, x86-64 or │ │ │ │ arm64. See the │ │ │ │ architectures │ │ │ │ defined for │ │ │ │ ConditionArchitecture= │ │ │ │ in systemd.unit(5) │ │ │ │ for a full list. │ ├──────────┼────────────────────┼────────────────────────┤ │"%A" │ Operating system │ The operating system │ │ │ image version │ image version │ │ │ │ identifier of the │ │ │ │ running system, as │ │ │ │ read from the │ │ │ │ IMAGE_VERSION= field │ │ │ │ of /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼────────────────────┼────────────────────────┤ │"%b" │ Boot ID │ The boot ID of the │ │ │ │ running system, │ │ │ │ formatted as string. │ │ │ │ See random(4) for more │ │ │ │ information. │ ├──────────┼────────────────────┼────────────────────────┤ │"%B" │ Operating system │ The operating system │ │ │ build ID │ build identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ BUILD_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼────────────────────┼────────────────────────┤ │"%C" │ System or user │ In --user mode, this │ │ │ cache directory │ is the same as │ │ │ │ $XDG_CACHE_HOME, and │ │ │ │ /var/cache otherwise. │ ├──────────┼────────────────────┼────────────────────────┤ │"%g" │ User group │ This is the name of │ │ │ │ the group running the │ │ │ │ command. In case of │ │ │ │ the system instance │ │ │ │ this resolves to │ │ │ │ "root". │ ├──────────┼────────────────────┼────────────────────────┤ │"%G" │ User GID │ This is the numeric │ │ │ │ GID of the group │ │ │ │ running the command. │ │ │ │ In case of the system │ │ │ │ instance this resolves │ │ │ │ to 0. │ ├──────────┼────────────────────┼────────────────────────┤ │"%h" │ User home │ This is the home │ │ │ directory │ directory of the user │ │ │ │ running the command. │ │ │ │ In case of the system │ │ │ │ instance this resolves │ │ │ │ to "/root". │ ├──────────┼────────────────────┼────────────────────────┤ │"%H" │ Host name │ The hostname of the │ │ │ │ running system. │ ├──────────┼────────────────────┼────────────────────────┤ │"%l" │ Short host name │ The hostname of the │ │ │ │ running system, │ │ │ │ truncated at the first │ │ │ │ dot to remove any │ │ │ │ domain component. │ ├──────────┼────────────────────┼────────────────────────┤ │"%L" │ System or user log │ In --user mode, this │ │ │ directory │ is the same as │ │ │ │ $XDG_CONFIG_HOME with │ │ │ │ /log appended, and │ │ │ │ /var/log otherwise. │ ├──────────┼────────────────────┼────────────────────────┤ │"%m" │ Machine ID │ The machine ID of the │ │ │ │ running system, │ │ │ │ formatted as string. │ │ │ │ See machine-id(5) for │ │ │ │ more information. │ ├──────────┼────────────────────┼────────────────────────┤ │"%M" │ Operating system │ The operating system │ │ │ image identifier │ image identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ IMAGE_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼────────────────────┼────────────────────────┤ │"%o" │ Operating system │ The operating system │ │ │ ID │ identifier of the │ │ │ │ running system, as │ │ │ │ read from the ID= │ │ │ │ field of │ │ │ │ /etc/os-release. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼────────────────────┼────────────────────────┤ │"%S" │ System or user │ In --user mode, this │ │ │ state directory │ is the same as │ │ │ │ $XDG_CONFIG_HOME, and │ │ │ │ /var/lib otherwise. │ ├──────────┼────────────────────┼────────────────────────┤ │"%t" │ System or user │ In --user mode, this │ │ │ runtime directory │ is the same │ │ │ │ $XDG_RUNTIME_DIR, and │ │ │ │ /run/ otherwise. │ ├──────────┼────────────────────┼────────────────────────┤ │"%T" │ Directory for │ This is either /tmp or │ │ │ temporary files │ the path "$TMPDIR", │ │ │ │ "$TEMP" or "$TMP" are │ │ │ │ set to. (Note that the │ │ │ │ directory may be │ │ │ │ specified without a │ │ │ │ trailing slash.) │ ├──────────┼────────────────────┼────────────────────────┤ │"%u" │ User name │ This is the name of │ │ │ │ the user running the │ │ │ │ command. In case of │ │ │ │ the system instance │ │ │ │ this resolves to │ │ │ │ "root". │ ├──────────┼────────────────────┼────────────────────────┤ │"%U" │ User UID │ This is the numeric │ │ │ │ UID of the user │ │ │ │ running the command. │ │ │ │ In case of the system │ │ │ │ instance this resolves │ │ │ │ to 0. │ ├──────────┼────────────────────┼────────────────────────┤ │"%v" │ Kernel release │ Identical to uname -r │ │ │ │ output. │ ├──────────┼────────────────────┼────────────────────────┤ │"%V" │ Directory for │ This is either │ │ │ larger and │ /var/tmp or the path │ │ │ persistent │ "$TMPDIR", "$TEMP" or │ │ │ temporary files │ "$TMP" are set to. │ │ │ │ (Note that the │ │ │ │ directory may be │ │ │ │ specified without a │ │ │ │ trailing slash.) │ ├──────────┼────────────────────┼────────────────────────┤ │"%w" │ Operating system │ The operating system │ │ │ version ID │ version identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ VERSION_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼────────────────────┼────────────────────────┤ │"%W" │ Operating system │ The operating system │ │ │ variant ID │ variant identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ VARIANT_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼────────────────────┼────────────────────────┤ │"%%" │ Single percent │ Use "%%" in place of │ │ │ sign │ "%" to specify a │ │ │ │ single percent sign. │ └──────────┴────────────────────┴────────────────────────┘