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 This file is part of systemd.
8 Copyright 2012 Lennart Poettering
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24 <refentry id="systemd-delta">
27 <title>systemd-delta</title>
28 <productname>systemd</productname>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
41 <refentrytitle>systemd-delta</refentrytitle>
42 <manvolnum>1</manvolnum>
46 <refname>systemd-delta</refname>
47 <refpurpose>Find overridden configuration files</refpurpose>
52 <command>systemd-delta <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="opt" rep="repeat">SUFFIX</arg></command>
57 <title>Description</title>
59 <para><command>systemd-delta</command> may be used to
60 identify and compare configuration files in
61 <filename>/etc</filename> that override default
62 counterparts in <filename>/usr</filename>. The command
63 line argument can be one or more name of a subdirectories of
64 <filename>/etc</filename> or
65 <filename>/usr/lib</filename> to compare, such as
66 <filename>tmpfiles.d</filename>, <filename>sysctl.d</filename> or
67 <filename>systemd/system</filename>.</para>
69 <para>When no argument is specified a number of
70 well-known subdirectories are searched for overridden
75 <title>Options</title>
77 <para>The following options are understood:</para>
81 <term><option>-h</option></term>
82 <term><option>--help</option></term>
84 <listitem><para>Prints a short help
85 text and exits.</para></listitem>
89 <term><option>--version</option></term>
91 <listitem><para>Prints a short version
92 string and exits.</para></listitem>
96 <term><option>--no-pager</option></term>
98 <listitem><para>Do not pipe output into a
99 pager.</para></listitem>
103 <term><option>-t</option></term>
104 <term><option>--type=</option></term>
106 <listitem><para>When listing the
107 differences, only list those that are
108 asked for. The list itself is a
109 comma-separated list of desired
110 difference types.</para>
112 <para>Recognized types are:
116 <term><varname>masked</varname></term>
118 <listitem><para>Show masked files</para></listitem>
122 <term><varname>equivalent</varname></term>
124 <listitem><para>Show overridden
125 files that while overridden, do
126 not differ in content.</para></listitem>
130 <term><varname>redirected</varname></term>
132 <listitem><para>Show files that
133 are redirected to another.</para></listitem>
137 <term><varname>overridden</varname></term>
139 <listitem><para>Show overridden,
140 and changed files.</para></listitem>
144 <term><varname>extended</varname></term>
146 <listitem><para>Show *.conf files in drop-in
147 directories for units.</para></listitem>
151 <term><varname>unchanged</varname></term>
153 <listitem><para>Show unmodified
154 files too.</para></listitem>
161 <term><option>--diff=</option></term>
163 <listitem><para>When showing modified
164 files, when a file is overridden show a
165 diff as well. This option takes a
166 boolean argument. If omitted it defaults
167 to <option>true</option>.</para></listitem>
175 <title>Exit status</title>
177 <para>On success 0 is returned, a non-zero failure
178 code otherwise.</para>
182 <title>See Also</title>
184 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>