Questions tagged [gzip]

Gzip is any of several software applications used for file compression and decompression. The term usually refers to the GNU Project's implementation, "gzip" standing for GNU zip. It is based on the DEFLATE algorithm, which is a combination of Lempel-Ziv (LZ77) and Huffman coding.

Gzip is any of several software applications used for file compression and decompression. The term usually refers to the GNU Project's implementation, "gzip" standing for GNU zip. It is based on the DEFLATE algorithm, which is a combination of Lempel-Ziv (LZ77) and Huffman coding.

Gzip is based on the DEFLATE algorithm, which is a combination of LZ77 and Huffman coding. DEFLATE was intended as a replacement for LZW and other patent-encumbered data compression algorithms, which, at the time, limited the usability of compress and other popular archivers.

"Gzip" is often also used to refer to the gzip file format, which is:

  • a 10-byte header, containing a magic number, a version number and a time stamp
  • optional extra headers, such as the original file name
  • a body, containing a DEFLATE-compressed payload
  • an 8-byte footer, containing a CRC-32 checksum and the length of the original uncompressed data

source: wikipedia

334 questions
5
votes
3 answers

How to replace gzip with pigz without breaking anything

I would like to use pigz to compress my backups instead of gzip on Linux. Since pigz is a replacement for gzip, is it safe to replace the gzip binary (without deleting it) with a symlink to the pigz binary? Could this break something on the OS?
Fabrizio Mazzoni
  • 671
  • 1
  • 9
  • 24
5
votes
2 answers

nginx : enabling gzip compression based on hostname

I have a single machine running nginx serving http traffic for multiple domains(using same Lua codebase). For some of the domains I would like to enable gzip compression. Is it possible to enable gzip compression for specific set of domains? How?
simplfuzz
  • 269
  • 1
  • 4
  • 10
5
votes
2 answers

How can I troubleshoot why my IIS7 site is not gzip compressing?

I've got a number of websites on a single IIS7 machine running W2K8. I'm using Fiddler to help me figure out if something is compressed or not. Nothing is. So, I've googled for a few things and tried some things out. I have the following…
Pure.Krome
  • 6,508
  • 18
  • 73
  • 87
5
votes
5 answers

Enabling gzip compression in IIS and having it take effect

We've enabled Gzip compression on the server in IIS (IIS6). We've run iisreset. It just doesn't want to take effect. We had this before on another server, and after a little while, it just started working. Is it supposed to "take" right away? If…
Macho Matt
  • 211
  • 4
  • 10
5
votes
2 answers

nginx gzip enabled but not not gzipping

I have gzip enabled on nginx 1.2.8, but for some reason, it is not gzipping anything. Nginx install info: nginx version: nginx/1.2.8 built by gcc 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) TLS SNI support enabled configure arguments:…
F21
  • 706
  • 3
  • 11
  • 20
5
votes
2 answers

Gzip compression with nginx

In my nginx.conf I have: gzip on; gzip_static on; gzip_buffers 16 8k; gzip_comp_level 9; gzip_http_version 1.0; gzip_min_length 1000; gzip_types text/plain text/css image/x-icon image/bmp image/png image/gif…
Jerry
  • 61
  • 1
  • 1
  • 3
5
votes
0 answers

Creating a seperate static content site for IIS7 and MVC

With reference to this serverfault blog post: A Few Speed Improvements where it talks about how static content for stackexchange is served from a separate cookieless domain... How would someone go about doing this on IIS7.5 for a ASP.NET MVC…
JK01
  • 339
  • 2
  • 7
  • 16
5
votes
2 answers

What is the best way to compress backend to nginx reverse proxy data?

We are going to be running a nginx reverse proxy that will pull data from a backend via the internet. What we mean by via the internet is the backend machine will not be on a lan with the front facing reverse proxy. We were thinking it would be nice…
anonymous-one
  • 1,018
  • 7
  • 27
  • 43
5
votes
2 answers

Why is IIS7 not compressing my static files?

I am trying to get IIS to compress jquery.js (and all other static files, but using jquery as the example here) on my localhost, but something goes wrong. The funny part is that when I look in my %SystemDrive%\inetpub\temp\IIS Temporary Compressed…
Peter Evjan
  • 171
  • 1
  • 5
5
votes
3 answers

How to zip the standard output of a process?

I have a process that is producing a big amount of log to the standard output in a short period of time. Is there a way to zip the standard output of my process to a file. I am searching for something like: ./process | zip output.log.zip
bmm
  • 159
  • 1
  • 2
5
votes
1 answer

Oops - how to undo gzip of entire web directory?

So.. yeah. I don't spend a lot of time on the linux command line and instead of making a zip file of the web directory, I gzipped everything in the web directory. What's the anecdote to stupidly doing this from the web root? sudo gunzip…
doub1ejack
  • 567
  • 1
  • 6
  • 12
5
votes
4 answers

How to manually extract a backup set made by duplicity?

I have a set of files on my webserver produced by duplicity software: duplicity-full.20110315T085334Z.vol1.difftar.gz duplicity-full.20110315T085334Z.vol2.difftar.gz duplicity-full.20110315T085334Z.vol3.difftar.gz etc... (50 files, total size about…
Andrew
  • 321
  • 3
  • 5
  • 11
5
votes
3 answers

nginx is not using gzip to talk to backend servers

Our web servers are running IIS 7 and are configured to compress dynamic and static content. When I hit these servers directly, gzip compression works. I recently placed nginx in front of them, and gzip compression has stopped. I was able to…
Michael Gorsuch
  • 2,378
  • 1
  • 21
  • 24
5
votes
1 answer

Howto: create file with current date and time on linux

I have a cron job for creating a gzip file: mysqldump... | gzip -c > myfile..sql.gz I want myfile to be of the format "time_date.sql.gz" How do I create file with the current date and time? Thanks
Am.
  • 165
  • 2
  • 7
5
votes
1 answer

Unable to compress 18GB file on Ubuntu Linux 18.04

It never happened to me before, but I'm unable to do a simple task such as compressing a 18.5 GB file on Ubuntu Linux 18.04 with any of the popular compressing tools such as gzip, bzip2 and 7z. All of them report a similar warning (not error)…
Claudi
  • 181
  • 6