Re: Copress a directory
On Fri, Mar 24, 2006 at 02:20:02PM +1100, Star King of the Grape Trees wrote:
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.
Thanks a lot in advance!
tar -cvj directory -f directory.tar.bz2
Or, for those who think it is a sin to use '-' when it isn't required:
tar jcvf dir.tar.bz2 dir
for bzip2 compression, or for gzip:
tar zcvf dir.tar.gz dir
--
Steve Block
http://ev-15.com/
http://steveblock.com/
scblock@ev-15.com
Reply to: