We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

cbrant on 06/10/08


Tagged

tar bzip2 bunzip2


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

cbrant


Archive using tar and bzip2


Published in: Bash 


Quick example of how to compress and decompress archives using tar and bzip2.

  1. To create a bzip2-compressed tar-file:
  2.  
  3. tar -cjf archivefile.tar.bz2 file-list
  4.  
  5.  
  6. Decompressing in GNU tar:
  7.  
  8. tar -xjf archivefile.tar.bz2

Report this snippet 

You need to login to post a comment.