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 <refentrytitle>systemd-delta
</refentrytitle>
19 <manvolnum>1</manvolnum>
23 <refname>systemd-delta
</refname>
24 <refpurpose>Find overridden configuration files
</refpurpose>
29 <command>systemd-delta
</command>
30 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
31 <arg choice=
"opt" rep=
"repeat"><replaceable>PREFIX
</replaceable><optional>/
<replaceable>SUFFIX
</replaceable></optional>|
<replaceable>SUFFIX
</replaceable></arg>
36 <title>Description
</title>
38 <para><command>systemd-delta
</command> may be used to identify and
39 compare configuration files that override other configuration
40 files. Files in
<filename>/etc
</filename> have highest priority,
41 files in
<filename>/run
</filename> have the second highest
42 priority, …, files in
<filename>/usr/lib
</filename> have lowest
43 priority. Files in a directory with higher priority override files
44 with the same name in directories of lower priority. In addition,
45 certain configuration files can have
<literal>.d
</literal>
46 directories which contain
"drop-in" files with configuration
47 snippets which augment the main configuration file.
"Drop-in"
48 files can be overridden in the same way by placing files with the
49 same name in a directory of higher priority (except that, in case
50 of
"drop-in" files, both the
"drop-in" file name and the name of
51 the containing directory, which corresponds to the name of the
52 main configuration file, must match). For a fuller explanation,
54 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
57 <para>The command line argument will be split into a prefix and a
58 suffix. Either is optional. The prefix must be one of the
59 directories containing configuration files
60 (
<filename>/etc
</filename>,
<filename>/run
</filename>,
61 <filename>/usr/lib
</filename>, …). If it is given, only
62 overriding files contained in this directory will be shown.
63 Otherwise, all overriding files will be shown. The suffix must be
64 a name of a subdirectory containing configuration files like
65 <filename>tmpfiles.d
</filename>,
<filename>sysctl.d
</filename> or
66 <filename>systemd/system
</filename>. If it is given, only
67 configuration files in this subdirectory (across all configuration
68 paths) will be analyzed. Otherwise, all configuration files will
69 be analyzed. If the command line argument is not given at all, all
70 configuration files will be analyzed. See below for some
75 <title>Options
</title>
77 <para>The following options are understood:
</para>
81 <term><option>-t
</option></term>
82 <term><option>--type=
</option></term>
84 <listitem><para>When listing the differences, only list those
85 that are asked for. The list itself is a comma-separated list
86 of desired difference types.
</para>
88 <para>Recognized types are:
92 <term><varname>masked
</varname></term>
94 <listitem><para>Show masked files
</para></listitem>
98 <term><varname>equivalent
</varname></term>
100 <listitem><para>Show overridden files that while
101 overridden, do not differ in content.
</para></listitem>
105 <term><varname>redirected
</varname></term>
107 <listitem><para>Show files that are redirected to
108 another.
</para></listitem>
112 <term><varname>overridden
</varname></term>
114 <listitem><para>Show overridden, and changed
115 files.
</para></listitem>
119 <term><varname>extended
</varname></term>
121 <listitem><para>Show
<filename>*.conf
</filename> files
122 in drop-in directories for units.
</para></listitem>
126 <term><varname>unchanged
</varname></term>
128 <listitem><para>Show unmodified files
129 too.
</para></listitem>
136 <term><option>--diff=
</option></term>
138 <listitem><para>When showing modified files, when a file is
139 overridden show a diff as well. This option takes a boolean
140 argument. If omitted, it defaults to
141 <option>true
</option>.
</para></listitem>
144 <xi:include href=
"standard-options.xml" xpointer=
"help" />
145 <xi:include href=
"standard-options.xml" xpointer=
"version" />
146 <xi:include href=
"standard-options.xml" xpointer=
"no-pager" />
151 <title>Examples
</title>
153 <para>To see all local configuration:
</para>
154 <programlisting>systemd-delta
</programlisting>
156 <para>To see all runtime configuration:
</para>
157 <programlisting>systemd-delta /run
</programlisting>
159 <para>To see all system unit configuration changes:
</para>
160 <programlisting>systemd-delta systemd/system
</programlisting>
162 <para>To see all runtime
"drop-in" changes for system units:
</para>
163 <programlisting>systemd-delta --type=extended /run/systemd/system
</programlisting>
167 <title>Exit status
</title>
169 <para>On success,
0 is returned, a non-zero failure code
174 <title>See Also
</title>
176 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
177 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>