GZip/ZLib


Both ZLib and GZip were written by the same people... Jean-loup Gailly and Mark Alder.

GZip and ZLib are both compression software that utilize the DEFLATE algorythm. GZip and ZLib are similar but not exactly the same... they have different headers.

GZip is mostly used for stand alone, one file at a time, archieves... it makes the famous gz file extention.

ZLib is use in Tarballing

CREATED 2017-02-27 07:34:53.0

00-27-50

UPDATED 2017-02-27 10:20:01.0

Format


The file format is pretty simple... gzip encapsulates the output from DEFLATE and adds some extra file information like

       ...and...
  • The file name (pretty important)
  • The original file permissions
  • The files original date
  • a checksum at the end of the file for integrety verification.

CREATED 2017-02-27 07:47:57.0

00-27-51

UPDATED 2017-02-27 07:48:04.0

Switches and Syntax...


These are a few of the common switches used with gzip:

Switch Description
-c Stream output to the console leaving the file unchanged.
-d Decompress the archieve.
-h Help
-l List the contents of the archieve.
-r Recursive.
-t Test the file integrity.

CREATED 2017-02-27 09:21:44.0

00-27-52

UPDATED 2017-02-27 09:21:55.0

Examples...


gzip MyStats.txt gzip -d MyStats.txt.gz

To compress a file named MyStats.txt:

The output will be the archieve MyStats.txt.gz. The original file will be gone. This file is the original file.

To decompress the archieve:

The archieve is decompressed to its original state.

CREATED 2017-02-27 09:41:50.0

00-27-58

UPDATED 2017-02-27 09:41:56.0

Knowledge

L
I
N
K
S

DBID: db.wam

Page Server: Ruger

©2012 Leistware Data Systems

      Hello anonymous