tldr/pages/common/pigz.md

29 lines
546 B
Markdown
Raw Normal View History

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