LBZDIFF(1)
π LBZDIFF β the one where we compare compressed files, bestie
okay so this is the manual page for lbzcmp and lbzdiff, living in the General Commands Manual (section 1, the classics). sit down, grab a boba, we're doing this π§β¨
πΈ NAME πΈ
lbzcmp, lbzdiff β compare compressed files π«Ά
like, it's giving "diff but the files are squished" and honestly? iconic.
β¨ SYNOPSIS β¨
lbzcmp [ cmp_options ] file1 [ file2 ]
lbzdiff [ diff_options ] file1 [ file2 ]
no cap, that's the whole vibe. one file or two, and some options if you're feeling fancy π
π¦ DESCRIPTION π¦
okay so here's the tea β β Zcmp and lbzdiff exist to invoke the cmp program or the diff program on files that were compressed via lbzip2. that's the whole job. that's the mission. periodt.
every option you specify gets passed directly to cmp or diff. no middleman behaviour, no secret sauce, they just go straight through. π¨
now the branching:
- if you only specify file1, it gets compared to the uncompressed contents of
file1.bz2β yes bestie, it goes and unzips it for you in spirit, you don't have to do anything π - if you specify two files, their contents (uncompressed if necessary) are fed to
cmpordiff. "if necessary" is doing a lot of work there and we respect it π
and the part we all care about: the input files are not modified. your files are safe, they're untouched, they're thriving, we would never π
also the exit status from cmp or diff is preserved. so if you're scripting and checking $?, it means what you think it means. slay π₯
π SEE ALSO π
go read these too, they're all in the family:
the whole squad fr fr π«Ά
π BUGS π
okay so here's the little gremlin in the system π:
Messages from thecmpordiffprograms may refer to file names such as"-"instead of to the file names specified.
so basically the error messages might gaslight you a tiny bit and say "-" when you definitely typed a real filename. not you being confused, it's the tool. noted, documented, we move π
that's the whole page bestie!! written for the General Commands Manual, section 1 β the lbzcmp / lbzdiff era, archived for the girlies who compress their files and still want to compare them. mwah πβ¨π¦
π¦ where this page comes from
- fedora 43: lbzip2-utils 1.0-28.fc43 Β· GPL-3.0-or-later
- fedora 44: lbzip2-utils 1.0-29.fc44 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms