LinuxCommandLibrary

lzip

Lzip is a lossless data compressor with a user interface similar to `gzip` or `bzip2`.

TLDR

Archive a file, replacing it with with a compressed version

$ lzip [path/to/file]
copy


Archive a file, keeping the input file
$ lzip -k [path/to/file]
copy


Archive a file with the best compression (level=9)
$ lzip -k [path/to/file] --best
copy


Archive a file at the fastest speed (level=0)
$ lzip -k [path/to/file] --fast
copy


Test the integrity of compressed file
$ lzip --test [path/to/archive.lz]
copy


Decompress a file, replacing it with the original uncompressed version
$ lzip -d [path/to/archive.lz]
copy


Decompress a file, keeping the archive
$ lzip -d -k [path/to/archive.lz]
copy


List files which are in an archive and show compression stats
$ lzip --list [path/to/archive.lz]
copy

Copied to clipboard