tar

1. compress Directory to TGZ

tar czvf foo.tgz bar/

2. decompress TGZ

tar zxvf foo.tgz

3. compress Directory to TBZ2(tar.bz2)

tar cjvf foo.tar.bz2 bar/

4. decompress TBZ2

tar jxvf foo.tar.bz2

由以上的例子可以知道只要把參數z換成j就可以處理bzip2檔案啦!

tzangms

Read more posts by this author.

Subscribe to Oceanic / 海海人生

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!