tldr/pages/common/pigz.md

29 lines
562 B
Markdown
Raw Normal View History

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