Last active
April 14, 2022 21:52
-
-
Save fairhopeweb/e6bb8a5b9fa2094728ccc1ba692a31de to your computer and use it in GitHub Desktop.
[How to compress folder with pigz using tar]How to compress folder with pigz using tar since pigz can't compress folders #compression #pigz #tar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[title] description #tag1 #tag2 - tag for Lepton | |
# pigz and tar | |
tar --use-compress-program="pigz -k -9" -cf pictures.tar.gz Pictures | |
tar - tar program | |
-> --use-compress-program="pigz" # calling use of pigz within the program tar | |
-> -k # pigz by DEFAULT WILL DELETE FILE, the -k tell Pigz to keep the original file after completion | |
-> -9 # pigz has multiple compression levels - 1 - 9. 1 being least compressed and fastest, and vice versa | |
-> -cf # tar command to compress folders | |
-> pictures.tar.gz # Name of output file | |
-> Pictures # Name of Folder to compress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment