[CentOS] Bzip2 Compress directories

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

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