May 2017
Beginner
552 pages
28h 47m
English
pbzip2 myfile.tar
pbzip2 detects the number of cores on your system and compresses myfile.tar, to myfile.tar.bz2.
tar cf sav.tar.bz2 --use-compress-prog=pbzip2 dir
Alternatively, this can be used:
tar -c directory_to_compress/ | pbzip2 -c > myfile.tar.bz2
The -d flag will decompress a file:
pbzip2 -d myfile.tar.bz2
A tar archive can be decompressed and extracted using a pipe:
pbzip2 -dc myfile.tar.bz2 | tar x