2014년 3월 21일 금요일

pigz, tar - nautilus setting for multithreading

Use all cores for encoding and decoding file!

alias for .bashrc
alias tar='tar --use-compress-program="pigz --fast --recursive | pv"'


i.e)
Compress
tar --use-compress-program="pigz --best --recursive | pv" -cf archive.tar.gz YourData

with alias
tar -cf archive.tar.gz YourData


Decompress
pigz -dc target.tar.gz | pv | tar xf -

=========================


Monitor progress in a terminal
*use 'pv ' for watch progress



ex) tar -c Music | pv | pigz -0 > ./backup.tar.gz

pigz -0 => compress level 0 (no compress), replace number with proper level. level 9 is max.

 another example)
//set value in ./bashrc



alias tar="tar --use-compress-program=pigz"

//reload bashrc
source ~/.bashrc


How to unzip pigz
http://serverfault.com/questions/270814/fastest-way-to-extract-tar-gz

pigz -dc target.tar.gz | tar xf -

Or

tar -xvf --use-compress-program=pigz filenamehere

댓글 없음:

sublime close without confirmation

  Close without confirm   Yes, you can just write a plugin to set the view as scratch and close it. Then create a keybinding for that c...