From eea5e61e06b051946b65d1d031415d84846c283c Mon Sep 17 00:00:00 2001 From: Antony Natale <43508092+tonytheleg@users.noreply.github.com> Date: Tue, 11 Oct 2022 08:41:49 -0400 Subject: [PATCH] xzdiff: add page (#8923) --- pages/common/xzdiff.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pages/common/xzdiff.md diff --git a/pages/common/xzdiff.md b/pages/common/xzdiff.md new file mode 100644 index 0000000000..d494df03c4 --- /dev/null +++ b/pages/common/xzdiff.md @@ -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: . + +- 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}}`