Re: How to gzip multiple image files into one .gz?

Página Principal
Anexos:
Mensagem como email
+ (text/plain)
Apagar esta mensagem
Responder a esta mensagem
Autor: Matt Graham
Data:  
Para: Main PLUG discussion list
Assunto: Re: How to gzip multiple image files into one .gz?
> On Mon, May 14, 2012 at 11:32 AM, <> wrote:
>> Is there a way to gzip multiple image files into a single .gz file?

From: James Finstrom <>
> tar -czvf images.tar.gz image1 image2 image3


gzip , like bzip2 , works on *one file*. If you want to put multiple files
together and compress them, you can't do it with gzip alone. One way to do
that is to use tar in conjunction with gzip (or bzip2) as James showed above.

You don't have to use tar; you can also use another archiver like cpio. Or
you can use zip, as in "zip -r mydirectory.zip mydirectory/" , which will
create a pretty ordinary zip file that may be easier for a less-literate
person to open on Windows/OS X. There are many ways to archive and compress
files, since people have needed to do that for almost 40 years now....

--
Matt G / Dances With Crows
The Crow202 Blog: http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss