Command: gzip / gunzip / zcat
GZIP (GNU zip) is a compression utility designed to be a replacement
for 'compress'. Its main advantages over compress are much better
compression and freedom from patented algorithms. The GNU Project
uses it as the standard compression program for its system.
Copy GZIP.EXE to GUNZIP.EXE and ZCAT.EXE, or use "gzip -d" to
decompress. GZIP386.exe runs much faster but only on 386 and above.
ZCAT is identical to GUNZIP -c.
Syntax:
gzip [ -acdfhlLnNrtvV19 ] [-S suffix] [ name ... ]
gunzip [ -acfhlLnNrtvV ] [-S suffix] [ name ... ]
zcat [ -fhLV ] [ name ... ]
Options:
-a --ascii Ascii text mode: convert end-of-lines using
local conventions.
-c --stdout --to-stdout
Write output on standard output; keep original
files unchanged.
-d --decompress --uncompress
Decompress.
-f --force Force overwrite of output file and compress
links.
-h --help Display a help screen and quit.
-l --list List compressed file contents
-L --license Display the gzip license and quit.
-n --no-name Do not save or restore the original name and
time stamp.
-N --name Save or restore the original name and time
stamp.
-q --quiet Suppress all warnings.
-S .suf --suffix .suf Use suffix .suf instead of .gz.
-t --test Test. Check the compressed file integrity.
-v --verbose Verbose mode.
-V --version Display the version number and compilation
options then quit.
-1 --fast Compress faster
-9 --best Compress better
file... File to (de)compress. If none given use
standard input.
Comments:
GZIP, like most Zippers, has an extensive documentation that is beyond
the scope of this help. For more information see:
https://gitlab.com/FreeDOS/archiver/gzip/-/tree/master/DOC/GZIP?
ref_type=heads OR:
C:\FREEDOS\DOC\GZIP
Examples:
COMPRESS:
gzip -c readme.txt > foo.gz
EXPAND:
gzip -c -d foo.gz > readme2.txt (creates uncompressed readme2.txt) OR:
gunzip -c foo.gz > readme3.txt (creates uncompressed readme3.txt) OR:
gunzip foo.gz (greates uncompressed file "foo", deletes "foo.gz").
See also:
7zdec
arj
bzip2
cabext
lpq1
lzip
lzma
lzop
p7zip
slicer
tar
unzip
zip
zoo
Copyright © 1992-1993 Jean-loup Gailly, help version 2023 W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.