summaryrefslogtreecommitdiff
path: root/Base/usr
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-03-19 17:07:10 +0000
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-19 11:01:49 -0700
commit11ab8ee80ab2af227432a856cf2cf1b1f9f6e329 (patch)
treecc684bd11920d45e1433756b323ade13098db8dc /Base/usr
parent1ba6974b604b3d480aadfcc9b2adbcf64e3efd0a (diff)
downloadserenity-11ab8ee80ab2af227432a856cf2cf1b1f9f6e329.zip
Base: Add a man-page for cmp(1)
Diffstat (limited to 'Base/usr')
-rw-r--r--Base/usr/share/man/man1/cmp.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/cmp.md b/Base/usr/share/man/man1/cmp.md
new file mode 100644
index 0000000000..3f84cdfb69
--- /dev/null
+++ b/Base/usr/share/man/man1/cmp.md
@@ -0,0 +1,29 @@
+## Name
+
+cmp - compare files
+
+## Synopsis
+
+```**sh
+$ cmp [options...] file1 file2
+```
+
+## Description
+
+Compare two files and report the location of any differences. By default, execution stops after the first difference, but this can be overridden (see `--verbose` option). Byte and line numbers start at 1.
+
+## Options
+
+* `--help`: Display help message and exit
+* `-l`, `--verbose`: Output the byte number, and the differing bytes, for every difference.
+* `-s`, `--silent`: Silence output.
+
+## Arguments
+
+* `file1` and `file2`: Files to compare. Use `-` as the file name to read from standard input.
+
+## Exit status
+
+* 0 - Files are identical.
+* 1 - Files are different.
+* 2 - An error occurred.