2025-03-14 21:59:59 -06:00
|
|
|
# pigz
|
|
|
|
|
|
|
|
|
|
> Multithreaded zlib compression utility.
|
|
|
|
|
> More information: <https://github.com/madler/pigz>.
|
|
|
|
|
|
|
|
|
|
- Compress a file with default options:
|
|
|
|
|
|
|
|
|
|
`pigz {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Compress a file using the best compression method:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pigz {{[-9|--best]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Compress a file using no compression and 4 processors:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pigz -0 {{[-p|--processes]}} {{4}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Compress a directory using tar:
|
|
|
|
|
|
|
|
|
|
`tar cf - {{path/to/directory}} | pigz > {{path/to/file.tar.gz}}`
|
|
|
|
|
|
|
|
|
|
- Decompress a file:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pigz {{[-d|--decompress]}} {{archive.gz}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List the contents of an archive:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pigz {{[-l|--list]}} {{archive.tar.gz}}`
|