+2 votes
in General IT Tips by (66.8k points)

I want to use pigz to compress a folder. Since pigz supports only files, is there any way to use it for a folder?

1 Answer

+2 votes
by (281k points)
selected by
 
Best answer

You can use tar command with the ‘use-compress-program’ parameter. You have to specify use-compress-program=pigz to use pigz to compress a folder.

tar --use-compress-program=pigz -cf your_folder.tar.gz your_folder/

In the above command, you need to replace "your_folder" with your real folder name.


...