pigz, which stands for parallel implementation of gzip, is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data.

But this tool is used only to compress a single file.

How i can manage it to compress folders too from source code: http://www.zlib.net/pigz/pigz-2.3.3.tar.gz

Or any other idea ... but without using TAR since i want use it too in windows os.

PigZ will only compress single files. You will need to use an archiver to collect the files into a single file.

You can use ZIP with no compression (-0) as an archiver, then pipe the output to PigZ for parallel compression.

  • How i can do that on windows for example ? about archiving file from command line and send output to pigz ? – Creative Man Sep 27 '16 at 17:11
  • Check out: msdn.microsoft.com/en-us/library/bb417343.aspx Specifically: The following command stores files in the cabinet with no compression: cabarc –m NONE n mycab.cab <files to arcive> Then run pigz on the cab file. Can easily be done in a BATCH file. – user2183032 Sep 27 '16 at 17:26

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.