1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/xzdiff.md

26 lines
773 B
Markdown
Raw Normal View History

2022-10-11 08:41:49 -04:00
# xzdiff
> Invokes `diff` on files compressed with `xz`, `lzma`, `gzip`, `bzip2`, `lzop`, or `zstd`.
> All options specified are passed directly to `diff`.
2022-10-11 08:41:49 -04:00
> More information: <https://manned.org/xzdiff>.
- Compare two files:
2022-10-11 08:41:49 -04:00
`xzdiff {{path/to/file1}} {{path/to/file2}}`
- Compare two files, showing the differences side by side:
2022-10-11 08:41:49 -04:00
`xzdiff --side-by-side {{path/to/file1}} {{path/to/file2}}`
- Compare two files and report only that they differ (no details on what is different):
2022-10-11 08:41:49 -04:00
`xzdiff --brief {{path/to/file1}} {{path/to/file2}}`
- Compare two files and report when the files are the same:
2022-10-11 08:41:49 -04:00
`xzdiff --report-identical-files {{path/to/file1}} {{path/to/file2}}`
- Compare two files using paginated results:
2022-10-11 08:41:49 -04:00
`xzdiff --paginate {{path/to/file1}} {{path/to/file2}}`