summaryrefslogtreecommitdiffstats
path: root/man/standard-specifiers.xml
blob: f1666365b9c19ba7a9129067215f94e22e969600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->

<tbody>
  <row id='a'>
    <entry><literal>%a</literal></entry>
    <entry>Architecture</entry>
    <entry>A short string identifying the architecture of the local system. A string such as <constant>x86</constant>, <constant>x86-64</constant> or <constant>arm64</constant>. See the architectures defined for <varname>ConditionArchitecture=</varname> in <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> for a full list.</entry>
  </row>
  <row id='A'>
    <entry><literal>%A</literal></entry>
    <entry>Operating system image version</entry>
    <entry>The operating system image version identifier of the running system, as read from the <varname>IMAGE_VERSION=</varname> field of <filename>/etc/os-release</filename>. If not set, resolves to an empty string. See <citerefentry><refentrytitle>os-release</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more information.</entry>
  </row>
  <row id='b'>
    <entry><literal>%b</literal></entry>
    <entry>Boot ID</entry>
    <entry>The boot ID of the running system, formatted as string. See <citerefentry><refentrytitle>random</refentrytitle><manvolnum>4</manvolnum></citerefentry> for more information.</entry>
  </row>
  <row id='B'>
    <entry><literal>%B</literal></entry>
    <entry>Operating system build ID</entry>
    <entry>The operating system build identifier of the running system, as read from the <varname>BUILD_ID=</varname> field of <filename>/etc/os-release</filename>. If not set, resolves to an empty string. See <citerefentry><refentrytitle>os-release</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more information.</entry>
  </row>
  <row id='H'>
    <entry><literal>%H</literal></entry>
    <entry>Host name</entry>
    <entry>The hostname of the running system.</entry>
  </row>
  <row id='l'>
    <entry><literal>%l</literal></entry>
    <entry>Short host name</entry>
    <entry>The hostname of the running system, truncated at the first dot to remove any domain component.</entry>
  </row>
  <row id='m'>
    <entry><literal>%m</literal></entry>
    <entry>Machine ID</entry>
    <entry>The machine ID of the running system, formatted as string. See <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more information.</entry>
  </row>
  <row id='M'>
    <entry><literal>%M</literal></entry>
    <entry>Operating system image identifier</entry>
    <entry>The operating system image identifier of the running system, as read from the <varname>IMAGE_ID=</varname> field of <filename>/etc/os-release</filename>. If not set, resolves to an empty string. See <citerefentry><refentrytitle>os-release</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more information.</entry>
  </row>
  <row id='o'>
    <entry><literal>%o</literal></entry>
    <entry>Operating system ID</entry>
    <entry>The operating system identifier of the running system, as read from the <varname>ID=</varname> field of <filename>/etc/os-release</filename>. See <citerefentry><refentrytitle>os-release</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more information.</entry>
  </row>
  <row id='T'>
    <entry><literal>%T</literal></entry>
    <entry>Directory for temporary files</entry>
    <entry>This is either <filename>/tmp<!-- no / --></filename> or the path <literal>$TMPDIR</literal>, <literal>$TEMP</literal> or <literal>$TMP</literal> are set to. (Note that the directory may be specified without a trailing slash.)</entry>
  </row>
  <row id='v'>
    <entry><literal>%v</literal></entry>
    <entry>Kernel release</entry>
    <entry>Identical to <command>uname -r</command> output.</entry>
  </row>
  <row id='V'>
    <entry><literal>%V</literal></entry>
    <entry>Directory for larger and persistent temporary files</entry>
    <entry>This is either <filename>/var/tmp<!-- no / --></filename> or the path <literal>$TMPDIR</literal>, <literal>$TEMP</literal> or <literal>$TMP</literal> are set to. (Note that the directory may be specified without a trailing slash.)</entry>
  </row>
  <row id='w'>
    <entry><literal>%w</literal></entry>
    <entry>Operating system version ID</entry>
    <entry>The operating system version identifier of the running system, as read from the <varname>VERSION_ID=</varname> field of <filename>/etc/os-release</filename>. If not set, resolves to an empty string. See <citerefentry><refentrytitle>os-release</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more information.</entry>
  </row>
  <row id='W'>
    <entry><literal>%W</literal></entry>
    <entry>Operating system variant ID</entry>
    <entry>The operating system variant identifier of the running system, as read from the <varname>VARIANT_ID=</varname> field of <filename>/etc/os-release</filename>. If not set, resolves to an empty string. See <citerefentry><refentrytitle>os-release</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more information.</entry>
  </row>
  <row id='percent'>
    <entry><literal>%%</literal></entry>
    <entry>Single percent sign</entry>
    <entry>Use <literal>%%</literal> in place of <literal>%</literal> to specify a single percent sign.</entry>
  </row>
</tbody>