mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 08:02:08 +02:00
xzdiff: add page (#8923)
This commit is contained in:
parent
8d6710a58c
commit
eea5e61e06
1 changed files with 29 additions and 0 deletions
29
pages/common/xzdiff.md
Normal file
29
pages/common/xzdiff.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# xzdiff
|
||||
|
||||
> Invokes the diff command on files compressed with xz, lzma, gzip, bzip2, lzop, or zstd.
|
||||
> All options specified are passed directly to diff.
|
||||
> More information: <https://manned.org/xzdiff>.
|
||||
|
||||
- Compare files:
|
||||
|
||||
`xzdiff {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Compare files, showing the differences side by side:
|
||||
|
||||
`xzdiff --side-by-side {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Compare files and report only that they differ (no details on what is different):
|
||||
|
||||
`xzdiff --brief {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Compare files and report when the files are the same:
|
||||
|
||||
`xzdiff --report-identical-files {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Compare files using paginated results:
|
||||
|
||||
`xzdiff --paginate {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Compare directories recursively (shows names for differing files/directories as well as changes made to files):
|
||||
|
||||
`diff --recursive {{path/to/file1}} {{path/to/file2}}`
|
Loading…
Add table
Reference in a new issue