Efficient File Compression with pigz
Unlock the potential of pigz, a parallel implementation of gzip designed for efficient file compression and decompression. Explore essential commands for compressing and decompressing files, adjust compression levels to balance speed and size, harness the power of multicore processing, efficiently handle files including compression of multiple files into a single archive and decompression of archives, utilize different compression modes like ZLIB and LZMA, manage output options for customized handling, and delve into advanced usages such as independent blocks and processing tar files. Discover how pigz can streamline your file compression tasks.
Basic Usage
Compression Levels
Here's a table that provides the various compression levels you can use with pigz, and the corresponding commands:
| Level | Description | Command |
|---|---|---|
| 1 | Fast compression | pigz -1 filename |
| 2-8 | Tradeoff between speed & size | pigz -5 filename |
| 9 | Best compression, slowest speed | pigz -9 filename |
Multicore Processing
File Handling
Compression Modes
Output
Advanced Usages
Compress a file with maximum compression and highest number of processing cores
Others
Efficient remote forensic disk acquisition gpg-crypted for multiple recipientsa
Acquires a bit-by-bit data image, gzip-compresses it on multiple cores (pigz) and encrypts the data for multiple recipients (gpg -e -r). It finally sends it off to a remote machine.