Re: Bzip2 Compress directories

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



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

* All the files in a dir? ( you cannot compress the directory itself).

Try:
   find dir -type f -print | xargs bzip2 -v
or
   find dir -type f -print0 | xargs -0 bzip2 -v
or
   cd dir; bzip2 *

Do you want to Package all the files into a tar or cpio archive
so you can send it to someone else?

-- 
        NiftyCluster
        T o m   M i t c h e l l
_______________________________________________
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