ZARCHIVE(1)

πŸ“¦
version 0.1.2 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ¦‹ zarchive β€” create and read zstd-compressed file archives

okay bestie so this is a General Commands Manual page, meaning zarchive is a lil command-line cutie you run in your terminal. and it's literally so good. let me tell you everything πŸ’–


✨ SYNOPSIS ✨

zarchive input_path [output_path]

that's it. that's the whole vibe. one required argument, one optional one, slay πŸ’…


🌸 DESCRIPTION 🌸

zarchive lets you create and read file archives in the ZArchive format β€” you'll see those files with the .zar extension πŸŽ€

so like. ZArchive is yet another file archive format. think of zip, tar, 7z, etc. β€” you know the drill β€” but with the requirement of allowing random-access reads and supporting compression ✨

so basically the whole point is: you can jump straight to whatever part of the archive you want, no rewinding through the whole file like it's a VHS tape πŸ’€ and it's compressed too. iconic behaviour, honestly.


πŸ’€ EXIT STATUS πŸ’€

  • exits 0 on success 🫢
  • exits >0 if an error occurs 😭

so yeah if you're scripting this, check that exit code, fr fr.


🌈 EXAMPLES 🌈

here's the moment you've been waiting for, bestie:

$ zarchive src
Outputting to: src.zar
Adding main.cpp
Adding zarchivereader.cpp
Adding zarchivewriter.cpp
Adding sha_256.c
Adding sha_256.h

look at that. you point it at a directory (src) and it tells you where it's going (Outputting to: src.zar) and then lists every single file it's scooping up one by one. the way it just names them all... obsessed 😌✨


πŸ‘‘ SEE ALSO πŸ‘‘

go give that one a read too, it's the compression backbone of this whole situation 🧚


πŸ’œ AUTHORS πŸ’œ

the ZArchive format, library and tool were written by Exzap β€” absolute main character energy πŸ‘‘

and this zarchive manual page was written by Andrea Pappacoda <tachi@debian.org> πŸŽ€


okay so that's the whole page!! thanks for coming to my ted talk 🫢

this was the Debian build, dated 2022-08-30, and it's the ZARCHIVE(1) page in case you need to find it again. bye bestie, go archive something πŸ’…βœ¨

πŸ“¦ where this page comes from