HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lzip — A lossless data compressor with a user interface similar to `gzip` or `bzip2`. Lzip uses a simplifie

Submitted by: @import:tldr-pages··
0
Viewed 0 times
compressorcommandclilzipwithuserdatalossless

Problem

How to use the lzip command: A lossless data compressor with a user interface similar to gzip or bzip2. Lzip uses a simplified form of the "Lempel-Ziv-Markovchain-Algorithm" (LZMA) stream format and provides 3-factor integrity checking to maximize interoperability and optimize safety. More information: <https://www.nongnu.org/lzip/manual/lzip_manual.html#Invoking-lzip>.

Solution

lzip — A lossless data compressor with a user interface similar to gzip or bzip2. Lzip uses a simplified form of the "Lempel-Ziv-Markovchain-Algorithm" (LZMA) stream format and provides 3-factor integrity checking to maximize interoperability and optimize safety. More information: <https://www.nongnu.org/lzip/manual/lzip_manual.html#Invoking-lzip>.

Archive a file, replacing it with a compressed version:
lzip {{path/to/file}}


Archive a file, keeping the input file:
lzip {{[-k|--keep]}} {{path/to/file}}


Archive a file with the best compression (level=9):
lzip {{[-k|--keep]}} {{path/to/file}} --best


Archive a file at the fastest speed (level=0):
lzip {{[-k|--keep]}} {{path/to/file}} --fast


Test the integrity of compressed file:
lzip {{[-t|--test]}} {{path/to/archive.lz}}


Decompress a file, replacing it with the original uncompressed version:
lzip {{[-d|--decompress]}} {{path/to/archive.lz}}


Decompress a file, keeping the archive:
lzip {{[-d|--decompress]}} {{[-k|--keep]}} {{path/to/archive.lz}}


List files which are in an archive and show compression stats:
lzip {{[-l|--list]}} {{path/to/archive.lz}}

Code Snippets

Archive a file, replacing it with a compressed version

lzip {{path/to/file}}

Archive a file, keeping the input file

lzip {{[-k|--keep]}} {{path/to/file}}

Archive a file with the best compression (level=9)

lzip {{[-k|--keep]}} {{path/to/file}} --best

Archive a file at the fastest speed (level=0)

lzip {{[-k|--keep]}} {{path/to/file}} --fast

Test the integrity of compressed file

lzip {{[-t|--test]}} {{path/to/archive.lz}}

Context

tldr-pages: common/lzip

Revisions (0)

No revisions yet.