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:
|
|
|
|
|
2022-12-06 06:47:56 +00:00
|
|
|
`pigz {{path/to/file}}`
|
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
|
|
|
|
2022-12-06 06:47:56 +00:00
|
|
|
`pigz -9 {{path/to/file}}`
|
2016-01-24 23:24:49 +00:00
|
|
|
|
|
|
|
- Compress a file using no compression and 4 processors:
|
|
|
|
|
2022-12-06 06:47:56 +00:00
|
|
|
`pigz -0 -p{{4}} {{path/to/file}}`
|
2016-01-14 12:12:09 +00:00
|
|
|
|
2019-06-27 01:44:47 +01:00
|
|
|
- Compress a directory using tar:
|
|
|
|
|
2022-12-06 06:47:56 +00:00
|
|
|
`tar cf - {{path/to/directory}} | pigz > {{path/to/file}}.tar.gz`
|
2019-06-27 01:44:47 +01:00
|
|
|
|
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}}`
|