2022-10-08 14:43:41 +02:00
# lzip
2023-11-15 05:25:25 +01:00
> 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.
2022-10-08 14:43:41 +02:00
> More information: <https://www.nongnu.org/lzip>.
- Archive a file, replacing it with with a compressed version:
`lzip {{path/to/file}}`
- Archive a file, keeping the input file:
2025-03-26 02:30:50 +02:00
`lzip {{[-k|--keep]}} {{path/to/file}}`
2022-10-08 14:43:41 +02:00
- Archive a file with the best compression (level=9):
2025-03-26 02:30:50 +02:00
`lzip {{[-k|--keep]}} {{path/to/file}} --best`
2022-10-08 14:43:41 +02:00
- Archive a file at the fastest speed (level=0):
2025-03-26 02:30:50 +02:00
`lzip {{[-k|--keep]}} {{path/to/file}} --fast`
2022-10-08 14:43:41 +02:00
- Test the integrity of compressed file:
2025-03-26 02:30:50 +02:00
`lzip {{[-t|--test]}} {{path/to/archive.lz}}`
2022-10-08 14:43:41 +02:00
- Decompress a file, replacing it with the original uncompressed version:
2025-03-26 02:30:50 +02:00
`lzip {{[-d|--decompress]}} {{path/to/archive.lz}}`
2022-10-08 14:43:41 +02:00
- Decompress a file, keeping the archive:
2025-03-26 02:30:50 +02:00
`lzip {{[-d|--decompress]}} {{[-k|--keep]}} {{path/to/archive.lz}}`
2022-10-08 14:43:41 +02:00
- List files which are in an archive and show compression stats:
2025-03-26 02:30:50 +02:00
`lzip {{[-l|--list]}} {{path/to/archive.lz}}`