Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to decompress with pigz

I am trying to use pigz for parallel compress and decompress. I have found a way to compress in parallel using the following command:

tar cf - /input/dir | pigz > output_file.tar.gz

What is the equivalent command to decompress? I need to be able to specify the filename and the output directory path in the command for it to be useful for me.

like image 496
user788171 Avatar asked Feb 20 '13 12:02

user788171


1 Answers

Use pigz -dc for decompression to stdout. Then use > as you are in your example to direct the output to the desired path and file.

You can type just pigz for command options help.

like image 82
Mark Adler Avatar answered Sep 21 '22 02:09

Mark Adler