2016-01-14 12:12:09 +00:00
|
|
|
# pigz
|
|
|
|
|
|
|
|
> Multithreaded zlib compression utility.
|
2019-05-29 14:53:51 +01:00
|
|
|
> More information: <https://github.com/madler/pigz>.
|
2016-01-14 12:12:09 +00:00
|
|
|
|
|
|
|
- Compress a file with default options:
|
|
|
|
|
2016-01-24 23:24:49 +00:00
|
|
|
`pigz {{filename}}`
|
2016-01-14 12:12:09 +00:00
|
|
|
|
2016-01-24 23:24:49 +00:00
|
|
|
- Compress a file using the best compression method:
|
2016-01-14 12:12:09 +00:00
|
|
|
|
2016-01-24 23:24:49 +00:00
|
|
|
`pigz -9 {{filename}}`
|
|
|
|
|
|
|
|
- Compress a file using no compression and 4 processors:
|
|
|
|
|
|
|
|
`pigz -0 -p{{4}} {{filename}}`
|
2016-01-14 12:12:09 +00:00
|
|
|
|
2019-06-27 01:44:47 +01:00
|
|
|
- Compress a directory using tar:
|
|
|
|
|
|
|
|
`tar cf - {{path/to/directory}} | pigz > {{filename}}.tar.gz`
|
|
|
|
|
2016-01-14 12:12:09 +00:00
|
|
|
- Decompress a file:
|
|
|
|
|
|
|
|
`pigz -d {{archive.gz}}`
|
|
|
|
|
|
|
|
- List the contents of an archive:
|
|
|
|
|
|
|
|
`pigz -l {{archive.tar.gz}}`
|