lezip is a command-line compressor/decompressor using LZ4 frame format.
Features:
- Streaming compression/decompression (small memory usage)
- Pack/unpack directories into a tar archive and compress it
- Read/write from stdin/stdout using
-
Commands and examples
- Compress a single file (creates
file.txt.lez):
lezip compress file.txt- Decompress a single file (writes
file.txtif possible):
lezip decompress file.txt.lez- Pack a directory into a compressed tar archive (creates
dir.tar.lez):
lezip pack myfolder- Unpack an archive into the current directory:
lezip unpack myfolder.tar.lez- Use stdin/stdout with
-(pipe-friendly):
cat file.txt | lezip compress - -o - > file.txt.lez
cat file.txt.lez | lezip decompress - -o - > file.txt
# pack/unpack over pipes
tar cf - myfolder | lezip pack - -o - > myfolder.tar.lez
cat myfolder.tar.lez | lezip unpack - -o - | tar xf -And add it to your PATH
Notes
packcreates a tar archive and writes it through LZ4 frame encoder.unpackreads an LZ4-framed tar archive and extracts files.- Using
-for input/output allows chaining with other Unix utilities.