Skip to main content

F!n!gzip

: gunzip filename.gz or gzip -d filename.gz . Keep original file : gzip -k filename .

Python’s built-in gzip module allows you to read and write compressed files directly in your scripts.

: An 8-byte section containing a CRC-32 checksum and the length of the original uncompressed data. A Completely Dissected GZIP File - Command Line Fanatic F!N!Gzip

: gzip -l filename.gz to see compression ratios and original size.

: Often combined with tar (creating .tar.gz or .tgz files) to compress entire directories, which gzip cannot do alone. : gunzip filename

: Use -1 for fastest (less compression) up to -9 for best (slowest). Python Implementation

: Replaces the original file with a version ending in .gz . : An 8-byte section containing a CRC-32 checksum

: A 10-byte section including a magic number ( 1f 8b ), compression method (usually DEFLATE), and timestamps.