LinuxCommandLibrary

rzip

TLDR

Compress file

$ rzip [file]
copy
Compress keeping original
$ rzip -k [file]
copy
Decompress file
$ rzip -d [file.rz]
copy
Set compression level
$ rzip -[9] [file]
copy
Verbose output
$ rzip -v [file]
copy

SYNOPSIS

rzip [options] files...

DESCRIPTION

rzip is a compression program designed for large files. It uses a rolling-window algorithm similar to rsync, then bzip2, achieving good compression on files with repeated sequences.

PARAMETERS

-d, --decompress

Decompress.
-k, --keep
Keep input files.
-f, --force
Force overwrite.
-0 to -9
Compression level.
-v, --verbose
Verbose output.
-L, --level n
Compression level.
-o file
Output file.

EXAMPLES

$ # Compress file
rzip largefile.tar

# Keep original
rzip -k database.sql

# Maximum compression
rzip -9 bigdata.csv

# Decompress
rzip -d file.rz

# Force overwrite
rzip -f -k important.dat

# Verbose
rzip -v -9 archive.tar
copy

CHARACTERISTICS

- Excellent for large files with repetition
- Uses rolling checksum (rsync algorithm)
- Final compression with bzip2
- Memory-intensive

CAVEATS

High memory usage. Best for files >10MB. Cannot decompress standard gzip/bzip2.

HISTORY

rzip was written by Andrew Tridgell (rsync author) to efficiently compress large files with long-distance redundancy.

SEE ALSO

lrzip(1), bzip2(1), gzip(1), xz(1)

Copied to clipboard