On Fri, 2006-03-24 at 11:07 +0800, Rocky Ou wrote:
> Hey,
> 
> Can anyone tell me how to compress a directory so that I could SCP it
> to remote server more quikly? I tried gzip -cf directoryName it does
> not work, And then I tried tar -vf DirectoryNme no rerult as well. I
> may blind but I could not find solution in gzip --help as well.

the important thing to understand here is that gzip, bzip2, and others
only operate on a file.

tar is used to make a directory into a file, so to speak.

so after you have made your directory into a file, you can then compress
it with gzip or bzip2 or whatever.

there are already about half a dozen replies to this email explaining
how to do that.

similarly, gunzip and its siblings only uncompress a file, so you need
to uncompress your tar file first, then you can untar the file into the
directory on the remote machine.

-matt zagrabelny


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to