[CentOS] Bzip2 Compress directories
Filipe Brandenburger
filbranden at gmail.comWed Apr 22 21:30:51 UTC 2009
- Previous message: [CentOS] Bzip2 Compress directories
- Next message: [CentOS] Bzip2 Compress directories
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, On Wed, Apr 22, 2009 at 17:23, James Matthews <nytrokiss at gmail.com> 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
- Previous message: [CentOS] Bzip2 Compress directories
- Next message: [CentOS] Bzip2 Compress directories
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list