rzip(1)

πŸ“¦
version 2.1 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– rzip(1): large-file compression, but make it group-chat πŸ’–

✨ NAME ✨

rzip β€” a large-file compression program. that's the whole name section, bestie. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

rzip [OPTIONS] <files...>

🌸 DESCRIPTION 🌸

okay so rzip is a file compression program designed to do particularly well on very large files containing long distance redundency. yes, "redundency" is literally the word on the page β€” we don't edit the lore πŸ’€ it's giving big-file specialist energy. πŸ’–

πŸŽ€ OPTIONS SUMMARY πŸŽ€

here's the quick menu, bestie:

  • -0 β€” fastest (worst) compression
  • -6 β€” default compression
  • -9 β€” slowest (best) compression
  • -d β€” decompress
  • -o filename β€” specify the output file name
  • -S suffix β€” specify compressed suffix (default '.rz')
  • -f β€” force overwrite of any existing files
  • -k β€” keep existing files
  • -P β€” show compression progress
  • -V β€” show version

πŸ’… OPTIONS πŸ’…

  • -h β€” print an options summary page.
  • -V β€” print the rzip version number.
  • -0..9 β€” set the compression level from 0 to 9. the default is level 6, which is a reasonable compromise between speed and compression. the compression level is also strongly related to how much memory rzip uses, so if you're running rzip on a machine with limited amounts of memory then you'll probably want to choose a smaller level. lowkey important, bestie 🫢
  • -d β€” decompress. if this option is not used then rzip looks at the name used to launch the program. if it contains the string 'runzip' then the -d option is automatically set. sneaky but iconic. πŸ‘‘
  • -o β€” set the output file name. if this option is not set then the output file name is chosen based on the input name and the suffix. the -o option cannot be used if more than one file name is specified on the command line.
  • -S β€” set the compression suffix. the default is '.rz'.
  • -f β€” if this option is not specified then rzip will not overwrite any existing files. if you set this option then rzip will silently overwrite any files as needed. no warning, no drama, just vibes πŸ’€
  • -k β€” if this option is not specified then rzip will delete the source file after successful compression or decompression. when this option is specified then the source files are not deleted.
  • -P β€” if this option is specified then rzip will show the percentage progress while compressing.

🌈 INSTALLATION 🌈

Just install rzip in your search path. that's the whole installation arc. iconic. ✨

πŸ”₯ COMPRESSION ALGORITHM πŸ”₯

rzip operates in two stages. the first stage finds and encodes large chunks of duplicated data over potentially very long distances (up to nearly a gigabyte) in the input file. the second stage is to use a standard compression algorithm (bzip2) to compress the output of the first stage. two-step slay πŸ’–

the key difference between rzip and other well known compression algorithms is its ability to take advantage of very long distance redundency. the well known deflate algorithm used in gzip uses a maximum history buffer of 32k. the block sorting algorithm used in bzip2 is limited to 900k of history. the history buffer in rzip can be up to 900MB long, several orders of magnitude larger than gzip or bzip2. not to be dramatic but that's a huge flex. 😭

it is quite common these days to need to compress files that contain long distance redundancies. for example, when compressing a set of home directories several users might have copies of the same file, or of quite similar files. it is also common to have a single file that contains large duplicated chunks over long distances, such as pdf files containing repeated copies of the same image. most compression programs won't be able to take advantage of this redundency, and thus might achieve a much lower compression ratio than rzip can achieve. periodt. πŸ’…

🧚 HISTORY 🧚

the ideas behind rzip were first implemented in 1998 while I was working on rsync. that version was too slow to be practical, and was replaced by this version in 2003. glow-up arc fr. 🌈

πŸ’€ BUGS πŸ’€

⚠️ unlike most Unix compression programs, rzip cannot compress or decompress to or from standard input or standard output. this is due to the nature of the algorithm that rzip uses and cannot easily be fixed. no cap, that's the limitation, bestie.

πŸ“ CREDITS πŸ“

thanks to the following people for their contributions to rzip:

  • Paul Russell for many suggestions and the debian packaging
  • The authors of bzlib for an excellent library

πŸ‘‘ AUTHOR πŸ‘‘

rzip was written by Andrew Tridgell http://samba.org/~tridge/

if you wish to report a problem or make a suggestion then please email bugs-rzip@tridgell.net

rzip is released under the GNU General Public License version 2 or later. Please see the file COPYING for license details.


πŸ’Œ signed off by rzip(1), dated October 2003 β€” mwah, bestie 🫢