compressiontargunzip

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.


Solution

  • 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.