y***z 发帖数: 1 | 1 How to creat compress several files with subdictory into a file using
tar and gzip?
Thanks! |
a****y 发帖数: 1035 | 2 tar cf - | gzip -c >xxx.tar.gz
【在 y***z 的大作中提到】 : How to creat compress several files with subdictory into a file using : tar and gzip? : Thanks!
|
q*****m 发帖数: 73 | 3 Only tar is enough:
tar -cvzf mydir.tar.gz mydir
【在 y***z 的大作中提到】 : How to creat compress several files with subdictory into a file using : tar and gzip? : Thanks!
|
p**h 发帖数: 99 | 4 if I want to add the option '-9' when using gzip, what is the equivalent
command with tar?
【在 q*****m 的大作中提到】 : Only tar is enough: : tar -cvzf mydir.tar.gz mydir
|
t****n 发帖数: 1347 | 5 That is GNU tar, not traditional tar.
【在 q*****m 的大作中提到】 : Only tar is enough: : tar -cvzf mydir.tar.gz mydir
|
q*****m 发帖数: 73 | 6 Good question.. but I don't know. The tar manual claims
tar -z leads to better compression, don't know the
detailes.
【在 p**h 的大作中提到】 : if I want to add the option '-9' when using gzip, what is the equivalent : command with tar?
|
q*****m 发帖数: 73 | 7 he has gzip, and I assume he has gnu tar.
(assume you know gzip is gnu zip)
【在 t****n 的大作中提到】 : That is GNU tar, not traditional tar.
|
c*****t 发帖数: 1879 | 8 hmm,
GNU is Not Unix... So better stick with general solutions.
【在 q*****m 的大作中提到】 : Good question.. but I don't know. The tar manual claims : tar -z leads to better compression, don't know the : detailes.
|