1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 SPDX-License-Identifier: LGPL-2.1+
9 <refentry id=
"systemd-delta"
10 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
13 <title>systemd-delta
</title>
14 <productname>systemd
</productname>
18 <contrib>Developer
</contrib>
19 <firstname>Lennart
</firstname>
20 <surname>Poettering
</surname>
21 <email>lennart@poettering.net
</email>
27 <refentrytitle>systemd-delta
</refentrytitle>
28 <manvolnum>1</manvolnum>
32 <refname>systemd-delta
</refname>
33 <refpurpose>Find overridden configuration files
</refpurpose>
38 <command>systemd-delta
</command>
39 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
40 <arg choice=
"opt" rep=
"repeat"><replaceable>PREFIX
</replaceable><optional>/
<replaceable>SUFFIX
</replaceable></optional>|
<replaceable>SUFFIX
</replaceable></arg>
45 <title>Description
</title>
47 <para><command>systemd-delta
</command> may be used to identify and
48 compare configuration files that override other configuration
49 files. Files in
<filename>/etc
</filename> have highest priority,
50 files in
<filename>/run
</filename> have the second highest
51 priority, …, files in
<filename>/usr/lib
</filename> have lowest
52 priority. Files in a directory with higher priority override files
53 with the same name in directories of lower priority. In addition,
54 certain configuration files can have
<literal>.d
</literal>
55 directories which contain
"drop-in" files with configuration
56 snippets which augment the main configuration file.
"Drop-in"
57 files can be overridden in the same way by placing files with the
58 same name in a directory of higher priority (except that, in case
59 of
"drop-in" files, both the
"drop-in" file name and the name of
60 the containing directory, which corresponds to the name of the
61 main configuration file, must match). For a fuller explanation,
63 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
66 <para>The command line argument will be split into a prefix and a
67 suffix. Either is optional. The prefix must be one of the
68 directories containing configuration files
69 (
<filename>/etc
</filename>,
<filename>/run
</filename>,
70 <filename>/usr/lib
</filename>, …). If it is given, only
71 overriding files contained in this directory will be shown.
72 Otherwise, all overriding files will be shown. The suffix must be
73 a name of a subdirectory containing configuration files like
74 <filename>tmpfiles.d
</filename>,
<filename>sysctl.d
</filename> or
75 <filename>systemd/system
</filename>. If it is given, only
76 configuration files in this subdirectory (across all configuration
77 paths) will be analyzed. Otherwise, all configuration files will
78 be analyzed. If the command line argument is not given at all, all
79 configuration files will be analyzed. See below for some
84 <title>Options
</title>
86 <para>The following options are understood:
</para>
90 <term><option>-t
</option></term>
91 <term><option>--type=
</option></term>
93 <listitem><para>When listing the differences, only list those
94 that are asked for. The list itself is a comma-separated list
95 of desired difference types.
</para>
97 <para>Recognized types are:
101 <term><varname>masked
</varname></term>
103 <listitem><para>Show masked files
</para></listitem>
107 <term><varname>equivalent
</varname></term>
109 <listitem><para>Show overridden files that while
110 overridden, do not differ in content.
</para></listitem>
114 <term><varname>redirected
</varname></term>
116 <listitem><para>Show files that are redirected to
117 another.
</para></listitem>
121 <term><varname>overridden
</varname></term>
123 <listitem><para>Show overridden, and changed
124 files.
</para></listitem>
128 <term><varname>extended
</varname></term>
130 <listitem><para>Show
<filename>*.conf
</filename> files
131 in drop-in directories for units.
</para></listitem>
135 <term><varname>unchanged
</varname></term>
137 <listitem><para>Show unmodified files
138 too.
</para></listitem>
145 <term><option>--diff=
</option></term>
147 <listitem><para>When showing modified files, when a file is
148 overridden show a diff as well. This option takes a boolean
149 argument. If omitted, it defaults to
150 <option>true
</option>.
</para></listitem>
153 <xi:include href=
"standard-options.xml" xpointer=
"help" />
154 <xi:include href=
"standard-options.xml" xpointer=
"version" />
155 <xi:include href=
"standard-options.xml" xpointer=
"no-pager" />
160 <title>Examples
</title>
162 <para>To see all local configuration:
</para>
163 <programlisting>systemd-delta
</programlisting>
165 <para>To see all runtime configuration:
</para>
166 <programlisting>systemd-delta /run
</programlisting>
168 <para>To see all system unit configuration changes:
</para>
169 <programlisting>systemd-delta systemd/system
</programlisting>
171 <para>To see all runtime
"drop-in" changes for system units:
</para>
172 <programlisting>systemd-delta --type=extended /run/systemd/system
</programlisting>
176 <title>Exit status
</title>
178 <para>On success,
0 is returned, a non-zero failure code
183 <title>See Also
</title>
185 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
186 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>