Pipe method =>
tar cvf - ./videos | pixz > oneFile.tpxz
- c --create
- v --verbose
- f --file but (-) means go to stdout
- | --stdout is piped to pixz stdin
- pixz>file --pixz is redirect it's stdout to a file using >.
Tar method =>
tar -Ipixz -cvf oneFile.tpxz ./videos
tar cvf - anyFile | pixz > anyFile.tpxz
tar -Ipixz -cvf anyFile.tpxz ./anyFile
pixz -i anyFile -o anyFile.tpxz
pixz < anyFile > anyFile.tpxz
tar -Ipixz -zvf File.tpxz -C output/dir
pixz -dk File.tpxz | tar xvf - # (failed)
pixz -dk File.tpxz -o outfile.tar && tar xvf outfile.tar -C output/dir
- k --keep orig file
- d --decompress
pixz -x ./vid/1.mp4 < new.tpxz | tar x
pixz -x < new.tpxz | tar x
Thoughts
-dk
decompress keep orig will decompress tpxz to tar, so I pipe |
it to tar -x
then failed.
I had to seperate two commads using &&
if I want to extract * from tpxz just uing this pixz -x < file.tpxz | tar x
about command with | tar x
will stdout extracted files to terminal so that pipping should work.
- decompress will produce tarball
- extract will produce stdout