[CentOS] Bzip2 Compress directories

Frank Cox theatre at sasktel.net
Wed Apr 22 22:27:53 UTC 2009

On Thu, 23 Apr 2009 00:23:35 +0300
James Matthews wrote:

> How do you get bzip2 to compress directories?

use tar.

tar cvjf mydirectory.tar.bz2 mydirectory

That will tar and bzip2 the directory called mydirectory and leave you with a
file named mydirectory.tar.bz2

MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com

More information about the CentOS mailing list