[Linux-disciples] bzip2 and directories

Adam Rosi-Kessel adam at rosi-kessel.org
Wed Jul 7 10:29:40 EDT 2004


On Wed, Jul 07, 2004 at 09:41:04AM -0400, Stephen R Laniel wrote:
> Probably a silly question: how does one bzip a directory and
> all its subdirectories? I looked in the man page and in
> /usr/share/doc, and nowhere do I find the word 'recursive'.
> There is no -r option, and trying to bzip the directory name
> (on the assumption that it'll recursively zip that directory
> and produce directoryName.bz2) produces an error.

Silly indeed.  It's sort of like asking why mutt doesn't have its own
editor.

tar cfj directoryName.tar.bz2 directory/

(for bzip2)

tar cfz directoryName.tar.bz2 directory/

(for gzip)

That whole "zip a directory" thing is very Win32ish.
-- 
Adam Rosi-Kessel
http://adam.rosi-kessel.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040707/ae37f55f/attachment-0001.pgp


More information about the Linux-disciples mailing list