Questions tagged [gzip]

gzip (or GNU zip) is a file format and corresponding utility for compressing files using the DEFLATE algorithm. The usual extension is .gz.

240 questions
18
votes
2 answers

How to GZIP all the files or a list of files from some path?

I know that gzip compress a file, but I would want to know. How to compress a list of files, each file in their own GZIP file ? I need to use the list of a folder: ls log.2011 And for each file create a zipped file. Any ideas ?
MadMad666
  • 388
3
votes
1 answer

Can't extract tar.gz file from Apache

I'm trying to do install manifoldcf on Ubuntu. I downloaded the file - apache-manifoldcf-1.9-src.tar.gz - directly from Apache (and I've tried different version as well with the same results). Using tar xvf, tar zxvf, and tried both with -zxvf, and…
Rob50
  • 73
2
votes
2 answers

Gzip thousands of files efficiently in a single pass

I want to gzip the contents of a couple of thousand of tiny files into a single file. While I could do it with something like for file in $(find . -iname 'pattern'); do; cat $file | gzip - >> zipped.gz; done;, this achieves pretty bad compression on…
Nick
  • 123
1
vote
1 answer

How to revert a "gzip -r folder/" command?

I accidentally compressed all the files using the Gzip method which compresses all the files (not directories) individually, replacing the uncompressed files with the .gz compressed files. How can I revert the operation I just did?
Mau
  • 184
1
vote
1 answer

Gzip -c over pipe matter?

I saw sometime 2 ways of writting: with and without -c Do the 2 following case output the same and have equal speed ? mysqldump -u root dbname | gzip > test.sql mysqldump -u root dbname | gzip -c > test.sql What about continous pipe? mysqldump -u…
0
votes
0 answers

Is there an older version of gzip that returns different/larger outputs?

I don't know how else to phrase this question, but I stumbled upon a file which I know from the header is gzipped (1F8B0800) but I am unable to recreate the file no matter what I try (including gzip on OSX, gzip on Linux, compress, and zlib). Even…
Yifan
  • 131
  • 5