2025-03-14 21:59:59 -06:00
# 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.
2025-12-16 10:20:31 -07:00
> More information: <https://www.nongnu.org/lzip/manual/lzip_manual.html#Invoking-lzip>.
2025-03-14 21:59:59 -06:00
- Archive a file, replacing it with with a compressed version:
`lzip {{path/to/file}}`
- Archive a file, keeping the input file:
2025-04-03 20:36:56 -06:00
`lzip {{[-k|--keep]}} {{path/to/file}}`
2025-03-14 21:59:59 -06:00
- Archive a file with the best compression (level=9):
2025-04-03 20:36:56 -06:00
`lzip {{[-k|--keep]}} {{path/to/file}} --best`
2025-03-14 21:59:59 -06:00
- Archive a file at the fastest speed (level=0):
2025-04-03 20:36:56 -06:00
`lzip {{[-k|--keep]}} {{path/to/file}} --fast`
2025-03-14 21:59:59 -06:00
- Test the integrity of compressed file:
2025-04-03 20:36:56 -06:00
`lzip {{[-t|--test]}} {{path/to/archive.lz}}`
2025-03-14 21:59:59 -06:00
- Decompress a file, replacing it with the original uncompressed version:
2025-04-03 20:36:56 -06:00
`lzip {{[-d|--decompress]}} {{path/to/archive.lz}}`
2025-03-14 21:59:59 -06:00
- Decompress a file, keeping the archive:
2025-04-03 20:36:56 -06:00
`lzip {{[-d|--decompress]}} {{[-k|--keep]}} {{path/to/archive.lz}}`
2025-03-14 21:59:59 -06:00
- List files which are in an archive and show compression stats:
2025-04-03 20:36:56 -06:00
`lzip {{[-l|--list]}} {{path/to/archive.lz}}`