Sunday, January 24, 2016

Compress File or Folder using tar and xz tool (Multi threaded)

To compress a folder, first navigate to subfolder using "cd" and isue below command the new 5.X version support multi-threading thus multi cpu by "-T number_of_cpu" syntax
tar -cf - src_folder/ | xz -T 6 -9 -c - > /tmp/src_folder.tar.xz 

No comments:

Post a Comment