rzip(1)
๐ rzip โ a large-file compression program ๐
okay bestie, sit down, hydrate, because today we're talking about rzip, a file compression program that is lowkey built different. she's designed to do particularly well on very large files containing long distance redundancy. that's her whole thing. that's her moment. โจ
๐ธ SYNOPSIS ๐ธ
rzip [OPTIONS] <files...>
๐ฆ DESCRIPTION ๐ฆ
so like. rzip is a file compression program, and she's specifically engineered to go absolutely feral on very large files that contain long distance redundancy. that's the vibe. that's the assignment. she ate. ๐
โจ OPTIONS SUMMARY โจ
here's the quick lil cheat sheet of what rzip can do for you, 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โ prints an options summary page. your little help menu moment. ๐ซถ-Vโ prints therzipversion number. identity check. who is she? now you know. ๐-0..9โ sets the compression level from 0 to 9. the default is to use level6, which is a reasonable compromise between speed and compression. and ngl, the compression level is strongly related to how much memoryrzipuses, so if you're runningrzipon a machine with limited amounts of memory then you will probably want to choose a smaller level. yes bestie, this is your reminder to check your RAM before you go feral. ๐ญ-dโ decompress. if this option is not used thenrziplooks at the name used to launch the program. if it contains the string'runzip'then the-doption is automatically set. sneaky. iconic. it's giving mind reading. ๐ฎ-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. but heads up: the-ooption cannot be used if more than one file name is specified on the command line. one file, one output, no exceptions. periodt. ๐-Sโ set the compression suffix. the default is'.rz'. ๐-fโ if this option is not specified thenrzipwill not overwrite any existing files. if you set this option thenrzipwill silently overwrite any files as needed. like, no warning, no drama, just gone. you've been warned, bestie. ๐-kโ if this option is not specified thenrzipwill delete the source file after successful compression or decompression. when this option is specified then the source files are not deleted. so if you're emotionally attached to your originals... use-k. ๐ฅบ-Pโ if this option is specified thenrzipwill show the percentage progress while compressing. that lil bar going up is honestly so satisfying, we love a progress moment. ๐
๐ง INSTALLATION ๐ง
just install rzip in your search path. that's it. that's the whole instruction. slay. โจ
๐ COMPRESSION ALGORITHM ๐
okay this is the part where she gets technical and honestly it's so cool. 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.
the key difference between rzip and other well known compression algorithms is its ability to take advantage of very long distance redundancy. let's compare, shall we? ๐
- the well known
deflatealgorithm used ingzipuses a maximum history buffer of 32k. - the block sorting algorithm used in
bzip2is limited to 900k of history. - the history buffer in
rzipcan be up to 900MB long โ several orders of magnitude larger thangziporbzip2. not a typo. nine hundred megabytes. she's huge. she's thriving. ๐ญ๐ฅ
and 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 redundancy, and thus might achieve a much lower compression ratio than rzip can achieve. so basically everyone else is fighting for their life and rzip is just standing there, unbothered, moisturized, in her lane. ๐
๐ 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 of the century, honestly. โจ
๐ 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. so no piping, bestie. no cat file | rzip. it's just not happening and it's not a bug she can fix. it's a lifestyle. ๐
๐ซถ CREDITS ๐ซถ
thanks to the following people for their contributions to rzip:
- Paul Russell for many suggestions and the debian packaging ๐
- The authors of
bzlibfor 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. ๐
okay that's the whole page, bestie!! this little love letter to rzip is dated October 2003 and lives in section rzip(1) of your manual. go forth, compress something enormous, and remember: long distance redundancy is not a red flag, it's an opportunity. mwah. ๐โจ๐๐ฆ๐ธ๐
๐ฆ where this page comes from
- debian bookworm: rzip 2.1-4.1 ยท GPL-2.0-or-later
- debian trixie: rzip 2.1-5 ยท GPL-2.0-or-later
- ubuntu jammy: rzip 2.1-4.1 ยท GPL-2.0-or-later
- ubuntu noble: rzip 2.1-4.1 ยท GPL-2.0-or-later
- ubuntu questing: rzip 2.1-5
- ubuntu resolute: rzip 2.1-5build1 ยท GPL-2.0-or-later
- ubuntu stonking: rzip 2.1-5build1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms