aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cmp/cmp.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cmp/cmp.1')
-rw-r--r--usr.bin/cmp/cmp.16
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/cmp/cmp.1 b/usr.bin/cmp/cmp.1
index 6980f73e7be5..511e09ac8628 100644
--- a/usr.bin/cmp/cmp.1
+++ b/usr.bin/cmp/cmp.1
@@ -41,6 +41,7 @@
.Nm
.Op Fl l | s | x
.Op Fl hz
+.Op Fl -bytes Ns Cm = Ns Ar num
.Ar file1 file2
.Op Ar skip1 Op Ar skip2
.Sh DESCRIPTION
@@ -62,6 +63,10 @@ Do not follow symbolic links.
.It Fl l , Fl -verbose
Print the byte number (decimal) and the differing
byte values (octal) for each difference.
+.It Fl n Ar num , Fl -bytes= Ns num
+Only compare up to
+.Ar num
+bytes.
.It Fl s , Fl -silent , Fl -quiet
Print nothing for differing files; return exit
status only.
@@ -165,6 +170,7 @@ utility is expected to be
compatible.
The
.Fl h ,
+.Fl n ,
.Fl x ,
and
.Fl z