This file is indexed.

/usr/share/doc/diffutils-doc/diffutils_13.html is in diffutils-doc 1:3.2-6.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- This manual is for GNU Diffutils
(version 3.2, 15 August 2011),
and documents the GNU diff, diff3,
sdiff, and cmp commands for showing the
differences between files and the GNU patch command for
using their output to update files.

Copyright C 1992-1994, 1998, 2001-2002, 2004, 2006, 2009-2011 Free
Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled
"GNU Free Documentation License."

 -->
<!-- Created on April 29, 2012 by texi2html 1.82
texi2html was written by: 
            Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people.
Send bugs and suggestions to <texi2html-bug@nongnu.org>
-->
<head>
<title>Comparing and Merging Files: 12. Invoking cmp</title>

<meta name="description" content="Comparing and Merging Files: 12. Invoking cmp">
<meta name="keywords" content="Comparing and Merging Files: 12. Invoking cmp">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.82">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.roman {font-family:serif; font-weight:normal;}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>


</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<a name="Invoking-cmp"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="diffutils_12.html#Generating-Smaller-Patches" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#cmp-Options" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="diffutils_12.html#Making-Patches" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="diffutils.html#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="diffutils_14.html#Invoking-diff" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="diffutils.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="diffutils_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="diffutils_22.html#Index" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="diffutils_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Invoking-cmp-1"></a>
<h1 class="chapter">12. Invoking <code>cmp</code></h1>
<a name="index-invoking-cmp"></a>
<a name="index-cmp-invocation"></a>

<p>The <code>cmp</code> command compares two files, and if they differ,
tells the first byte and line number where they differ or reports
that one file is a prefix of the other.  Bytes and
lines are numbered starting with 1.  The arguments of <code>cmp</code>
are as follows:
</p>
<table><tr><td>&nbsp;</td><td><pre class="example">cmp <var>options</var>&hellip; <var>from-file</var> <span class="roman">[</span><var>to-file</var> <span class="roman">[</span><var>from-skip</var> <span class="roman">[</span><var>to-skip</var><span class="roman">]</span><span class="roman">]</span><span class="roman">]</span>
</pre></td></tr></table>

<p>The file name &lsquo;<tt>-</tt>&rsquo; is always the standard input.  <code>cmp</code>
also uses the standard input if one file name is omitted.  The
<var>from-skip</var> and <var>to-skip</var> operands specify how many bytes to
ignore at the start of each file; they are equivalent to the
&lsquo;<samp>--ignore-initial=<var>from-skip</var>:<var>to-skip</var></samp>&rsquo; option.
</p>
<p>By default, <code>cmp</code> outputs nothing if the two files have the
same contents.  If one file is a prefix of the other, <code>cmp</code>
prints to standard error a message of the following form:
</p>
<table><tr><td>&nbsp;</td><td><pre class="example">cmp: EOF on <var>shorter-file</var>
</pre></td></tr></table>

<p>Otherwise, <code>cmp</code> prints to standard output a message of the
following form:
</p>
<table><tr><td>&nbsp;</td><td><pre class="example"><var>from-file</var> <var>to-file</var> differ: char <var>byte-number</var>, line <var>line-number</var>
</pre></td></tr></table>

<p>The message formats can differ outside the <acronym>POSIX</acronym> locale.
Also, <acronym>POSIX</acronym> allows the <acronym>EOF</acronym> message to be followed
by a blank and some additional information.
</p>
<p>An exit status of 0 means no differences were found, 1 means some
differences were found, and 2 means trouble.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#cmp-Options">12.1 Options to <code>cmp</code></a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> Summary of options to <code>cmp</code>.
</td></tr>
</table>

<hr size="6">
<a name="cmp-Options"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Invoking-cmp" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="diffutils_14.html#Invoking-diff" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#Invoking-cmp" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#Invoking-cmp" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="diffutils_14.html#Invoking-diff" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="diffutils.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="diffutils_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="diffutils_22.html#Index" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="diffutils_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Options-to-cmp"></a>
<h2 class="section">12.1 Options to <code>cmp</code></h2>
<a name="index-cmp-options"></a>
<a name="index-options-for-cmp"></a>

<p>Below is a summary of all of the options that <acronym>GNU</acronym>
<code>cmp</code> accepts.  Most options have two equivalent names, one of
which is a single letter preceded by &lsquo;<samp>-</samp>&rsquo;, and the other of which
is a long name preceded by &lsquo;<samp>--</samp>&rsquo;.  Multiple single letter options
(unless they take an argument) can be combined into a single command
line word: &lsquo;<samp>-bl</samp>&rsquo; is equivalent to &lsquo;<samp>-b -l</samp>&rsquo;.
</p>
<dl compact="compact">
<dt> &lsquo;<samp>-b</samp>&rsquo;</dt>
<dt> &lsquo;<samp>--print-bytes</samp>&rsquo;</dt>
<dd><p>Print the differing bytes.  Display control bytes as a
&lsquo;<samp>^</samp>&rsquo; followed by a letter of the alphabet and precede bytes
that have the high bit set with &lsquo;<samp>M-</samp>&rsquo; (which stands for &ldquo;meta&rdquo;).
</p>
</dd>
<dt> &lsquo;<samp>--help</samp>&rsquo;</dt>
<dd><p>Output a summary of usage and then exit.
</p>
</dd>
<dt> &lsquo;<samp>-i <var>skip</var></samp>&rsquo;</dt>
<dt> &lsquo;<samp>--ignore-initial=<var>skip</var></samp>&rsquo;</dt>
<dd><p>Ignore any differences in the first <var>skip</var> bytes of the input
files.  Treat files with fewer than <var>skip</var> bytes as if they are
empty.  If <var>skip</var> is of the form
&lsquo;<samp><var>from-skip</var>:<var>to-skip</var></samp>&rsquo;, skip the first <var>from-skip</var>
bytes of the first input file and the first <var>to-skip</var> bytes of the
second.
</p>
</dd>
<dt> &lsquo;<samp>-l</samp>&rsquo;</dt>
<dt> &lsquo;<samp>--verbose</samp>&rsquo;</dt>
<dd><p>Output the (decimal) byte numbers and (octal) values of all differing bytes,
instead of the default standard output.
Also, output the <acronym>EOF</acronym> message if one file is shorter than the other.
</p>
</dd>
<dt> &lsquo;<samp>-n <var>count</var></samp>&rsquo;</dt>
<dt> &lsquo;<samp>--bytes=<var>count</var></samp>&rsquo;</dt>
<dd><p>Compare at most <var>count</var> input bytes.
</p>
</dd>
<dt> &lsquo;<samp>-s</samp>&rsquo;</dt>
<dt> &lsquo;<samp>--quiet</samp>&rsquo;</dt>
<dt> &lsquo;<samp>--silent</samp>&rsquo;</dt>
<dd><p>Do not print anything; only return an exit status indicating whether
the files differ.
</p>
</dd>
<dt> &lsquo;<samp>-v</samp>&rsquo;</dt>
<dt> &lsquo;<samp>--version</samp>&rsquo;</dt>
<dd><p>Output version information and then exit.
</p></dd>
</dl>

<p>In the above table, operands that are byte counts are normally
decimal, but may be preceded by &lsquo;<samp>0</samp>&rsquo; for octal and &lsquo;<samp>0x</samp>&rsquo; for
hexadecimal.
</p>
<p>A byte count can be followed by a suffix to specify a multiple of that
count; in this case an omitted integer is understood to be 1.  A bare
size letter, or one followed by &lsquo;<samp>iB</samp>&rsquo;, specifies a multiple using
powers of 1024.  A size letter followed by &lsquo;<samp>B</samp>&rsquo; specifies powers
of 1000 instead.  For example, &lsquo;<samp>-n 4M</samp>&rsquo; and &lsquo;<samp>-n 4MiB</samp>&rsquo; are
equivalent to &lsquo;<samp>-n 4194304</samp>&rsquo;, whereas &lsquo;<samp>-n 4MB</samp>&rsquo; is
equivalent to &lsquo;<samp>-n 4000000</samp>&rsquo;.  This notation is upward compatible
with the <a href="http://www.bipm.fr/enus/3_SI/si-prefixes.html">SI prefixes</a> for decimal multiples and with the
<a href="http://physics.nist.gov/cuu/Units/binary.html">IEC 60027-2 prefixes for binary multiples</a>.
</p>
<p>The following suffixes are defined.  Large sizes like <code>1Y</code> may be
rejected by your computer due to limitations of its arithmetic.
</p>
<dl compact="compact">
<dt> &lsquo;<samp>kB</samp>&rsquo;</dt>
<dd><a name="index-kilobyte_002c-definition-of"></a>
<p>kilobyte: <em>10^3 = 1000</em>.
</p></dd>
<dt> &lsquo;<samp>k</samp>&rsquo;</dt>
<dt> &lsquo;<samp>K</samp>&rsquo;</dt>
<dt> &lsquo;<samp>KiB</samp>&rsquo;</dt>
<dd><a name="index-kibibyte_002c-definition-of"></a>
<p>kibibyte: <em>2^10 = 1024</em>.  &lsquo;<samp>K</samp>&rsquo; is special: the SI prefix is
&lsquo;<samp>k</samp>&rsquo; and the IEC 60027-2 prefix is &lsquo;<samp>Ki</samp>&rsquo;, but tradition and
<acronym>POSIX</acronym> use &lsquo;<samp>k</samp>&rsquo; to mean &lsquo;<samp>KiB</samp>&rsquo;.
</p></dd>
<dt> &lsquo;<samp>MB</samp>&rsquo;</dt>
<dd><a name="index-megabyte_002c-definition-of"></a>
<p>megabyte: <em>10^6 = 1,000,000</em>.
</p></dd>
<dt> &lsquo;<samp>M</samp>&rsquo;</dt>
<dt> &lsquo;<samp>MiB</samp>&rsquo;</dt>
<dd><a name="index-mebibyte_002c-definition-of"></a>
<p>mebibyte: <em>2^20 = 1,048,576</em>.
</p></dd>
<dt> &lsquo;<samp>GB</samp>&rsquo;</dt>
<dd><a name="index-gigabyte_002c-definition-of"></a>
<p>gigabyte: <em>10^9 = 1,000,000,000</em>.
</p></dd>
<dt> &lsquo;<samp>G</samp>&rsquo;</dt>
<dt> &lsquo;<samp>GiB</samp>&rsquo;</dt>
<dd><a name="index-gibibyte_002c-definition-of"></a>
<p>gibibyte: <em>2^30 = 1,073,741,824</em>.
</p></dd>
<dt> &lsquo;<samp>TB</samp>&rsquo;</dt>
<dd><a name="index-terabyte_002c-definition-of"></a>
<p>terabyte:  <em>10^12 = 1,000,000,000,000</em>.
</p></dd>
<dt> &lsquo;<samp>T</samp>&rsquo;</dt>
<dt> &lsquo;<samp>TiB</samp>&rsquo;</dt>
<dd><a name="index-tebibyte_002c-definition-of"></a>
<p>tebibyte: <em>2^40 = 1,099,511,627,776</em>.
</p></dd>
<dt> &lsquo;<samp>PB</samp>&rsquo;</dt>
<dd><a name="index-petabyte_002c-definition-of"></a>
<p>petabyte: <em>10^15 = 1,000,000,000,000,000</em>.
</p></dd>
<dt> &lsquo;<samp>P</samp>&rsquo;</dt>
<dt> &lsquo;<samp>PiB</samp>&rsquo;</dt>
<dd><a name="index-pebibyte_002c-definition-of"></a>
<p>pebibyte: <em>2^50 = 1,125,899,906,842,624</em>.
</p></dd>
<dt> &lsquo;<samp>EB</samp>&rsquo;</dt>
<dd><a name="index-exabyte_002c-definition-of"></a>
<p>exabyte: <em>10^18 = 1,000,000,000,000,000,000</em>.
</p></dd>
<dt> &lsquo;<samp>E</samp>&rsquo;</dt>
<dt> &lsquo;<samp>EiB</samp>&rsquo;</dt>
<dd><a name="index-exbibyte_002c-definition-of"></a>
<p>exbibyte: <em>2^60 = 1,152,921,504,606,846,976</em>.
</p></dd>
<dt> &lsquo;<samp>ZB</samp>&rsquo;</dt>
<dd><a name="index-zettabyte_002c-definition-of"></a>
<p>zettabyte: <em>10^21 = 1,000,000,000,000,000,000,000</em>
</p></dd>
<dt> &lsquo;<samp>Z</samp>&rsquo;</dt>
<dt> &lsquo;<samp>ZiB</samp>&rsquo;</dt>
<dd><p><em>2^70 = 1,180,591,620,717,411,303,424</em>.
(&lsquo;<samp>Zi</samp>&rsquo; is a GNU extension to IEC 60027-2.)
</p></dd>
<dt> &lsquo;<samp>YB</samp>&rsquo;</dt>
<dd><a name="index-yottabyte_002c-definition-of"></a>
<p>yottabyte: <em>10^24 = 1,000,000,000,000,000,000,000,000</em>.
</p></dd>
<dt> &lsquo;<samp>Y</samp>&rsquo;</dt>
<dt> &lsquo;<samp>YiB</samp>&rsquo;</dt>
<dd><p><em>2^80 = 1,208,925,819,614,629,174,706,176</em>.
(&lsquo;<samp>Yi</samp>&rsquo; is a GNU extension to IEC 60027-2.)
</p></dd>
</dl>

<hr size="6">
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Invoking-cmp" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="diffutils_14.html#Invoking-diff" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="diffutils.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="diffutils_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="diffutils_22.html#Index" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="diffutils_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<p>
 <font size="-1">
  This document was generated by <em>root</em> on <em>April 29, 2012</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.
 </font>
 <br>

</p>
</body>
</html>