Re: Bzip2 Compress directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

On Wed, Apr 22, 2009 at 17:23, James Matthews <nytrokiss@xxxxxxxxx> wrote:
> How do you get bzip2 to compress directories?

You use "tar" to create a tar with the directory contents, and then
bzip2 to compress that tarfile.

You can use the "-j" option of tar to bzip2 on the fly.

This is probably what you want:

$ tar -cvjf filename.tar.bz2 dirname/

Replace "filename" and "dirname" with something that is appropriate to you.

HTH,
Filipe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux