mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-30 06:17:55 +01:00
Edited pigz to more fitting examples
This commit is contained in:
parent
ac5eb74c78
commit
a5409ed437
1 changed files with 7 additions and 7 deletions
|
@ -4,11 +4,15 @@
|
|||
|
||||
- Compress a file with default options:
|
||||
|
||||
`pigz {{filename.ext}}`
|
||||
`pigz {{filename}}`
|
||||
|
||||
- Compress a file using compression method [1-9] and number of processors [-pN]:
|
||||
- Compress a file using the best compression method:
|
||||
|
||||
`pigz -9 -p8 {{filename.ext}}`
|
||||
`pigz -9 {{filename}}`
|
||||
|
||||
- Compress a file using no compression and 4 processors:
|
||||
|
||||
`pigz -0 -p{{4}} {{filename}}`
|
||||
|
||||
- Decompress a file:
|
||||
|
||||
|
@ -17,7 +21,3 @@
|
|||
- List the contents of an archive:
|
||||
|
||||
`pigz -l {{archive.tar.gz}}`
|
||||
|
||||
- Create an compressed archive when piped with tar:
|
||||
|
||||
`tar cvf - {{directory/to/archive}} | pigz -9 -p8 > {{archive.tar.gz}}`
|
Loading…
Reference in a new issue