boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - How to gzip a directory directly ?
相关主题
请教怎样使用tar压文件
How to creat .tar.gz?
[转载] Why gzip, compress won't work for RM file?
how to compress several file under unix
*.ps.gz??
Question about bzip2
FTP Help
Is there any software can D/L a whole directory?
A simple question!
[转载] 问一个问题
相关话题的讨论汇总
话题: gzip话题: tar话题: directory话题: directly话题: compress
进入Unix版参与讨论
1 (共1页)
I**A
发帖数: 96
1
I have a huge directory.
I want to archive it.
I used tar:
tar -cvf Myproject.tar Myproject
then used gzip:
gzip Myproject.tar
to generate .gz file.
But, the intermediate myproject.tar is too big, like 400GB.
I want to know how I can compress the directory directly.
Because the file is very huge, I doubt if tar pipe gzip works.
I saw there is tar -z can compress directly when we tar it. But my ksh does
not have this -z option.
c*****t
发帖数: 1879
2
Get a new gnu tar so you can use
tar cfz ...

【在 I**A 的大作中提到】
: I have a huge directory.
: I want to archive it.
: I used tar:
: tar -cvf Myproject.tar Myproject
: then used gzip:
: gzip Myproject.tar
: to generate .gz file.
: But, the intermediate myproject.tar is too big, like 400GB.
: I want to know how I can compress the directory directly.
: Because the file is very huge, I doubt if tar pipe gzip works.

I**A
发帖数: 96
3
What do you mean ? to let the system administrator upgrade the system so the
'z' option can work?
c*****t
发帖数: 1879
4
You can compile an updated version of tar yourself (or ask the admin).

the

【在 I**A 的大作中提到】
: What do you mean ? to let the system administrator upgrade the system so the
: 'z' option can work?

1 (共1页)
进入Unix版参与讨论
相关主题
[转载] 问一个问题
gcc in mac OSX
[转载] Re: cxterm 就是好!
如何解压*.tar.bz2文件?请教!
how to contral tar-ed file size?
急问: *.tgz 文件怎么解?
再次急问: *.tgz 文件怎么解?
关于tar的愚昧问题
请教: how to view content of jar file in unix ?
what is the command to gunzip/tar a .tar.gz file
相关话题的讨论汇总
话题: gzip话题: tar话题: directory话题: directly话题: compress