how to decompress with pigz

user788171 picture user788171 · Feb 20, 2013 · Viewed 33.3k times · Source

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.

Answer

Mark Adler picture Mark Adler · Feb 20, 2013

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.