mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
376 B
Plaintext
18 lines
376 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# zdiff
|
|
|
|
> Invoke `diff` on `gzip` archives.
|
|
> More information: <https://manned.org/zdiff>.
|
|
|
|
- Compare two files, uncompressing them if necessary:
|
|
|
|
`zdiff {{path/to/file1.gz}} {{path/to/file2.gz}}`
|
|
|
|
- Compare a file to a `gzip` archive with the same name:
|
|
|
|
`zdiff {{path/to/file}}`
|