1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6 <refentry id="systemd-delta"
7 xmlns:xi="http://www.w3.org/2001/XInclude">
10 <title>systemd-delta</title>
11 <productname>systemd</productname>
15 <refentrytitle>systemd-delta</refentrytitle>
16 <manvolnum>1</manvolnum>
20 <refname>systemd-delta</refname>
21 <refpurpose>Find overridden configuration files</refpurpose>
26 <command>systemd-delta</command>
27 <arg choice="opt" rep="repeat">OPTIONS</arg>
28 <group choice="opt" rep="repeat">
29 <arg choice="plain"><replaceable>PREFIX</replaceable></arg>
30 <arg choice="plain"><replaceable>PREFIX</replaceable>/<replaceable>SUFFIX</replaceable></arg>
31 <arg choice="plain"><replaceable>SUFFIX</replaceable></arg>
37 <title>Description</title>
39 <para><command>systemd-delta</command> may be used to identify and
40 compare configuration files that override other configuration
41 files. Files in <filename>/etc/</filename> have highest priority,
42 files in <filename>/run/</filename> have the second highest
43 priority, …, files in <filename>/usr/lib/</filename> have lowest
44 priority. Files in a directory with higher priority override files
45 with the same name in directories of lower priority. In addition,
46 certain configuration files can have <literal>.d</literal>
47 directories which contain "drop-in" files with configuration
48 snippets which augment the main configuration file. "Drop-in"
49 files can be overridden in the same way by placing files with the
50 same name in a directory of higher priority (except that, in case
51 of "drop-in" files, both the "drop-in" file name and the name of
52 the containing directory, which corresponds to the name of the
53 main configuration file, must match). For a fuller explanation,
55 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
58 <para>The command line argument will be split into a prefix and a
59 suffix. Either is optional. The prefix must be one of the
60 directories containing configuration files
61 (<filename>/etc/</filename>, <filename>/run/</filename>,
62 <filename>/usr/lib/</filename>, …). If it is given, only
63 overriding files contained in this directory will be shown.
64 Otherwise, all overriding files will be shown. The suffix must be
65 a name of a subdirectory containing configuration files like
66 <filename>tmpfiles.d</filename>, <filename>sysctl.d</filename> or
67 <filename>systemd/system</filename>. If it is given, only
68 configuration files in this subdirectory (across all configuration
69 paths) will be analyzed. Otherwise, all configuration files will
70 be analyzed. If the command line argument is not given at all, all
71 configuration files will be analyzed. See below for some
76 <title>Options</title>
78 <para>The following options are understood:</para>
82 <term><option>-t</option></term>
83 <term><option>--type=</option></term>
85 <listitem><para>When listing the differences, only list those
86 that are asked for. The list itself is a comma-separated list
87 of desired difference types.</para>
89 <para>Recognized types are:
93 <term><varname>masked</varname></term>
95 <listitem><para>Show masked files</para></listitem>
99 <term><varname>equivalent</varname></term>
101 <listitem><para>Show overridden files that while
102 overridden, do not differ in content.</para></listitem>
106 <term><varname>redirected</varname></term>
108 <listitem><para>Show files that are redirected to
109 another.</para></listitem>
113 <term><varname>overridden</varname></term>
115 <listitem><para>Show overridden, and changed
116 files.</para></listitem>
120 <term><varname>extended</varname></term>
122 <listitem><para>Show <filename>*.conf</filename> files
123 in drop-in directories for units.</para>
125 <xi:include href="version-info.xml" xpointer="v205"/></listitem>
129 <term><varname>unchanged</varname></term>
131 <listitem><para>Show unmodified files
132 too.</para></listitem>
139 <term><option>--diff=</option></term>
141 <listitem><para>When showing modified files, when a file is
142 overridden show a diff as well. This option takes a boolean
143 argument. If omitted, it defaults to
144 <option>true</option>.</para></listitem>
147 <xi:include href="standard-options.xml" xpointer="help" />
148 <xi:include href="standard-options.xml" xpointer="version" />
149 <xi:include href="standard-options.xml" xpointer="no-pager" />
154 <title>Examples</title>
156 <para>To see all local configuration:</para>
157 <programlisting>systemd-delta</programlisting>
159 <para>To see all runtime configuration:</para>
160 <programlisting>systemd-delta /run</programlisting>
162 <para>To see all system unit configuration changes:</para>
163 <programlisting>systemd-delta systemd/system</programlisting>
165 <para>To see all runtime "drop-in" changes for system units:</para>
166 <programlisting>systemd-delta --type=extended /run/systemd/system</programlisting>
170 <title>Exit status</title>
172 <para>On success, 0 is returned, a non-zero failure code
177 <title>See Also</title>
178 <para><simplelist type="inline">
179 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
180 <member><citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>