1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 17:02:09 +02:00
tldr/pages/common/cmp.md
2021-04-18 15:33:27 +01:00

12 lines
368 B
Markdown

# cmp
> Compare two files byte by byte.
> More information: <https://www.gnu.org/software/diffutils/manual/html_node/Invoking-cmp.html>.
- Find the byte and line number of the first difference between two files:
`cmp {{path/to/file1}} {{path/to/file2}}`
- Find the byte number and differing bytes of every difference:
`cmp -l {{path/to/file1}} {{path/to/file2}}`