diff --git a/pages/common/cmp.md b/pages/common/cmp.md new file mode 100644 index 000000000..9f392cb94 --- /dev/null +++ b/pages/common/cmp.md @@ -0,0 +1,11 @@ +# cmp + +> Compare two files. + +- Find the byte number and line number of the first difference between the files: + +`cmp {{file1}} {{file2}}` + +- Find the byte number and differing bytes of every difference: + +`cmp -l {{file1}} {{file2}}`