ZIPCMP(1)
β¨ ZIPCMP β¨
okay so bestie, this is zipcmp from the General Commands Manual section, and it's literally the moment you find out if two zips are the same girlies or not π
π¦ SYNOPSIS π¦
zipcmp [-ChipqsTtVv] archive1 archive2
π DESCRIPTION π
So what zipcmp does is it takes archive1 and archive2 β and those can be zip archives or directories, yes really β and it checks if they contain the same files. It compares the names, the uncompressed sizes, and the CRCs. That's the trio. That's the vibe check. π«Ά
And listen: file order does not matter. Compressed size differences? Also ignored. We are NOT nitpicking those, periodt.
Here's the options lineup, they're all icons honestly:
-Cβ Checks the consistency of the archives. If an archive is inconsistent, or just straight up not valid according to the zip specification, you get an error. It's giving π¨.-hβ Shows a short help message and dips. That's it, that's the whole thing.-iβ Compares names ignoring case distinctions. SoREADMEandreadmeare the same to it. lowercase girlboss behavior fr.-pβ Turns on paranoid checks π. It compares extra fields, comments, and other meta data. Important note bestie: this gets automatically disabled if one of the archives is a directory. Also, these checks get skipped for files where the data itself differs β no point being paranoid about a file that's already a different file, iykyk.-qβ Quiet mode. Like, the opposite of-v. Shhh π€«.-sβ Prints a summary of how many files were added and how many were removed. The receipts π.-Tβ Additionally compares the time stamps of the entries. Not just vibes β actual timestamps β°.-tβ Tests the zip files by comparing the contents to their checksums. Trust but verify, always π―.-Vβ Displays version information and exits. Byeee π.-vβ Verbose mode. Prints details about the differences to stdout. And here's the tea: this is the default π₯. So if you didn't ask for anything, you already got this.
π EXIT STATUS π
The numbers are the whole story here:
0β the two archives contain the same files. Slay π1β they differ. Not slay, but informative π>1β an error occurred. Something went wrong bestie π
πΈ SEE ALSO πΈ
Go be nosy, these are the friends:
π§ HISTORY π§
zipcmp was added in libzip 0.6. An elder. A legend. We stan π.
π AUTHORS π
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β the two masterminds behind this whole thing, absolute main characters β¨
okay that's the page, sending you off with love from the Debian crew, dated March 15, 2024 β go compare some zips and have the best day ππ¦πΈ
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- debian trixie: zipcmp 1.11.3-2 Β· BSD-3-Clause
- fedora 43: libzip-tools 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 44: libzip-tools 1.11.4-3.fc44 Β· BSD-3-Clause
- nixpkgs unstable: libzip 1.11.4
- ubuntu questing: zipcmp 1.11.3-2
- ubuntu resolute: zipcmp 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: zipcmp 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2003-2024 Dieter Baron and Thomas Klausner
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms