Pigz windows port
Pigz is a parallel gzip implementation. It uses multiple cores to speed up compression and decompression.
This is a Windows port made by Krzysztof Kowalczyk.
Download latest version :
Sources are at https://github.com/kjk/pigz
Have comments or questions about this software? Get in touch.
pigz [options] [files ...]
unpigz [options] [files ...]
pigz foo.txt will create
foo.txt.gz, compressed with gzip algorithm, and delete
To not delete the source file, use
To change the compression algorithm:
-9selects the compression strength. Higher number means better, but slower, compression
--fastis the same as
--bestis the same as
--11selects zopfli algorithm which creates zlib-compatible data, compresses ~5% better than zlib but is much slower
The suffix is:
- your own with
-11: Compression level (11 is much slower, a few % better)
--best: Compression levels 1 and 9 respectively
--blocksize mmm: Set compression block size to mmmK (default 128K)
--stdout: Write all processed output to stdout (won't delete)
--decompress: Decompress the compressed input
--force: Force overwrite, compress .gz, links, and to terminal
--help: Display a help screen and quit
--independent: Compress blocks independently for damage recovery
--keep: Do not delete original file after processing
--zip: Compress to PKWare zip (.zip) single entry format
--list: List the contents of the compressed input
--license: Display the pigz license and quit
--no-name: Do not store or restore file name in/from header
--name: Store/restore file name and mod time in/from header
--processes n:Allow up to n compression threads (default is the number of online processors, or 8 if unknown)
--quiet: Print no messages, even on error
--recursive: Process the contents of all subdirectories
--rsyncable: Input-determined block locations for rsync
--suffix .sss: Use suffix .sss instead of .gz (for compression)
--test: Test the integrity of the compressed input
--no-time: Do not store or restore mod time in/from header
--verbose: Provide more verbose output
--version: Show the version of pigz
--zlib: Compress to zlib (.zz) instead of gzip format
--: All arguments after "--" are treated as files
pigz.exe is the same as unpigz.exe!
You might have noticed that pigz.exe and unpigz.exe is exactly the same executable. That can't be right?
It is right. The reason for that is implementation trick that Unix version uses.
On Unix unpigz.exe is a symbolic link to pigz.exe. The program checks the name that was used to execute it to choose between acting as compressor or decompressor.
Unfortunately Windows doesn't have the same support for symbolic links so the easy way to replicate Unix behavior is to have the same executable under 2 different names.