2022-10-11 08:41:49 -04:00
|
|
|
# xzdiff
|
|
|
|
|
2023-07-16 08:00:03 +02:00
|
|
|
> 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>.
|
|
|
|
|
2024-01-31 00:55:19 -03:00
|
|
|
- Compare two files:
|
2022-10-11 08:41:49 -04:00
|
|
|
|
|
|
|
`xzdiff {{path/to/file1}} {{path/to/file2}}`
|
|
|
|
|
2024-01-31 00:55:19 -03:00
|
|
|
- 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}}`
|
|
|
|
|
2024-01-31 00:55:19 -03:00
|
|
|
- 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}}`
|
|
|
|
|
2024-01-31 00:55:19 -03:00
|
|
|
- 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}}`
|
|
|
|
|
2024-01-31 00:55:19 -03:00
|
|
|
- Compare two files using paginated results:
|
2022-10-11 08:41:49 -04:00
|
|
|
|
|
|
|
`xzdiff --paginate {{path/to/file1}} {{path/to/file2}}`
|