125 lines
3.6 KiB
HTML
125 lines
3.6 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of GNU</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>GNU</H1>
|
|
Section: User Commands (1)<BR>Updated: December 2018<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
GNU cmp - compare two files byte by byte
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>cmp</B>
|
|
|
|
[<I>OPTION</I>]... <I>FILE1 </I>[<I>FILE2 </I>[<I>SKIP1 </I>[<I>SKIP2</I>]]]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Compare two files byte by byte.
|
|
<P>
|
|
|
|
The optional SKIP1 and SKIP2 specify the number of bytes to skip
|
|
at the beginning of each file (zero by default).
|
|
<P>
|
|
|
|
Mandatory arguments to long options are mandatory for short options too.
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-b</B>, <B>--print-bytes</B><DD>
|
|
print differing bytes
|
|
<DT id="2"><B>-i</B>, <B>--ignore-initial</B>=<I>SKIP</I><DD>
|
|
skip first SKIP bytes of both inputs
|
|
<DT id="3"><B>-i</B>, <B>--ignore-initial</B>=<I>SKIP1</I>:SKIP2<DD>
|
|
skip first SKIP1 bytes of FILE1 and
|
|
first SKIP2 bytes of FILE2
|
|
<DT id="4"><B>-l</B>, <B>--verbose</B><DD>
|
|
output byte numbers and differing byte values
|
|
<DT id="5"><B>-n</B>, <B>--bytes</B>=<I>LIMIT</I><DD>
|
|
compare at most LIMIT bytes
|
|
<DT id="6"><B>-s</B>, <B>--quiet</B>, <B>--silent</B><DD>
|
|
suppress all normal output
|
|
<DT id="7"><B>--help</B><DD>
|
|
display this help and exit
|
|
<DT id="8"><B>-v</B>, <B>--version</B><DD>
|
|
output version information and exit
|
|
</DL>
|
|
<P>
|
|
|
|
SKIP values may be followed by the following multiplicative suffixes:
|
|
kB 1000, K 1024, MB 1,000,000, M 1,048,576,
|
|
GB 1,000,000,000, G 1,073,741,824, and so on for T, P, E, Z, Y.
|
|
<P>
|
|
|
|
If a FILE is '-' or missing, read standard input.
|
|
Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Written by Torbjorn Granlund and David MacKenzie.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>REPORTING BUGS</H2>
|
|
|
|
Report bugs to: <A HREF="mailto:bug-diffutils@gnu.org">bug-diffutils@gnu.org</A>
|
|
<BR>
|
|
|
|
GNU diffutils home page: <<A HREF="https://www.gnu.org/software/diffutils/">https://www.gnu.org/software/diffutils/</A>>
|
|
<BR>
|
|
|
|
General help using GNU software: <<A HREF="https://www.gnu.org/gethelp/">https://www.gnu.org/gethelp/</A>>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
Copyright © 2018 Free Software Foundation, Inc.
|
|
License GPLv3+: GNU GPL version 3 or later <<A HREF="https://gnu.org/licenses/gpl.html">https://gnu.org/licenses/gpl.html</A>>.
|
|
<BR>
|
|
|
|
This is free software: you are free to change and redistribute it.
|
|
There is NO WARRANTY, to the extent permitted by law.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?1+diff">diff</A>(1), <A HREF="/cgi-bin/man/man2html?1+diff3">diff3</A>(1), <A HREF="/cgi-bin/man/man2html?1+sdiff">sdiff</A>(1)
|
|
<P>
|
|
|
|
The full documentation for
|
|
<B>GNU</B>
|
|
|
|
is maintained as a Texinfo manual. If the
|
|
<B>info</B>
|
|
|
|
and
|
|
<B>GNU</B>
|
|
|
|
programs are properly installed at your site, the command
|
|
<DL COMPACT>
|
|
<DT id="9"><DD>
|
|
<B>info GNU</B>
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
should give you access to the complete manual.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="11"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="12"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="13"><A HREF="#lbAE">AUTHOR</A><DD>
|
|
<DT id="14"><A HREF="#lbAF">REPORTING BUGS</A><DD>
|
|
<DT id="15"><A HREF="#lbAG">COPYRIGHT</A><DD>
|
|
<DT id="16"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:09 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|