ZDIFF(1)
π ZDIFF(1) β the zdiff girlies' guide β¨
okay so bestie, welcome to zdiff from the zutils crew β this is the User Commands section of the manual and honestly? it's giving "compare my vibes to yours" energy. π¦
β¨ NAME β¨
zdiff β decompress stuff and compare two files line by line. that's it, that's the whole gig. π
πΈ SYNOPSIS πΈ
zdiff [options] file1 [file2]
π DESCRIPTION π
so zdiff literally compares two files, and if they don't match it writes the differences to standard output, line by line. π«Ά
a hyphen - used as a file argument means standard input β yep, the classic. and if any file you hand over is compressed, zdiff uses its decompressed content instead. iconic behaviour honestly.
zdiff is a front end to the program diff, and it has one limitation you need to know about: messages from diff refer to temporary file names instead of the ones you actually specified. not a bug, just how it is, iykyk. π
zdiff -v -V prints the version of the diff program used. π
the formats supported are bzip2, gzip, lzip, xz, and zstd. slay. π
zdiff compares file1 to file2. standard input is used only if file1 or file2 refers to standard input. and if file2 is omitted, zdiff tries to compare file1 with the corresponding uncompressed file (if file1 is compressed), and then with the corresponding compressed files of the remaining formats until one is found. it's out here doing the searching so you don't have to. π₯
exit status is 0 if inputs are identical, 1 if different, 2 if trouble. and bestie, hear me: some options only work if the diff program used supports them. so if something's not vibing, check your diff. π
π OPTIONS π
-h,--helpβ display this help and exit π₯°-V,--versionβ output version information and exit-a,--textβ treat all files as text-b,--ignore-space-changeβ ignore changes in the amount of white space-B,--ignore-blank-linesβ ignore changes whose lines are all blank-cβ use the context output format-C,--context=<n>β same as-cbut use<n>lines of context-d,--minimalβ try hard to find a smaller set of changes (it's putting in the effort fr fr)-E,--ignore-tab-expansionβ ignore changes due to tab expansion-i,--ignore-caseβ ignore case differences-M,--format=<list>β process only the formats in<list>-N,--no-rcfileβ don't read runtime configuration file-O,--force-format=[<f1>][,<f2>]β force one or both input formats-p,--show-c-functionβ show which C function each change is in-q,--briefβ output only whether files differ-s,--report-identical-filesβ report when two files are identical (yes queen, tell us when they match π«Ά)-t,--expand-tabsβ expand tabs to spaces in output-T,--initial-tabβ make tabs line up by prepending a tab-uβ use the unified output format-U,--unified=<n>β same as-ubut use<n>lines of context-v,--verboseβ verbose mode (for--version)-w,--ignore-all-spaceβ ignore all white space-W,--width=<n>β output at most<n>print columns (for-y)-y,--side-by-sideβ output in two columns--bz2=<command>β set compressor and options forbzip2format--gz=<command>β set compressor and options forgzipformat--lz=<command>β set compressor and options forlzipformat--xz=<command>β set compressor and options forxzformat--zst=<command>β set compressor and options forzstdformat
valid formats for options -M and -O are bz2, gz, lz, xz, zst, and un for uncompressed. don't forget un, she's important. π
π REPORTING BUGS π
found a bug? don't gatekeep, report it to zutils-bug@nongnu.org π
zutils home page: http://www.nongnu.org/zutils/zutils.html
π COPYRIGHT π
Copyright Β© 2025 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl.html
this is free software: you are free to change and redistribute it. and listen β there is NO WARRANTY, to the extent permitted by law. no cap, none. π
π SEE ALSO π
the full documentation for zdiff is maintained as a Texinfo manual. if the info and zdiff programs are properly installed at your site, the command
info zutils
should give you access to the complete manual. go off, read the whole thing, i believe in you. π§
and that's the tea, bestie β this page is from zutils version 1.15, dated May 2025. mwah, go compare some files ππ
π¦ where this page comes from
- alpine 3.24: zutils-doc 1.15-r0 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms