How to use bzip2 with tar

tar -cf file7.tar file4 file5 file6
bzip2 file7.tar
Alternatively, this can all be accomplished in a single step by merely adding the -j option to tar, which tells tar to compress the archive that it creates with bzip2. Thus, the above example would be simplified to:
tar -cjf file7.tar.bz2 file4 file5 file6


Post a Comment

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...