X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gzip.1;h=6594b7553f1984dcd0c4d5fd5d887398726e892e;hb=8f06a4236e1807caa727ed306216c6a0aea026f0;hp=06986eb02eb32908daa76462da612532fb3ab8ba;hpb=302189d124ed5849c2589ea92e912eb24fdc4ab3;p=debian%2Fgzip diff --git a/gzip.1 b/gzip.1 index 06986eb..6594b75 100644 --- a/gzip.1 +++ b/gzip.1 @@ -4,7 +4,7 @@ gzip, gunzip, zcat \- compress or expand files .SH SYNOPSIS .ll +8 .B gzip -.RB [ " \-acdfhlLnNrtvV19 " ] +.RB [ " \-acdfhklLnNrtvV19 " ] .RB [ \-S\ suffix ] [ .I "name \&..." @@ -12,7 +12,7 @@ gzip, gunzip, zcat \- compress or expand files .ll -8 .br .B gunzip -.RB [ " \-acfhlLnNrtvV " ] +.RB [ " \-acfhklLnNrtvV " ] .RB [ \-S\ suffix ] [ .I "name \&..." @@ -28,11 +28,9 @@ gzip, gunzip, zcat \- compress or expand files reduces the size of the named files using Lempel-Ziv coding (LZ77). Whenever possible, each file is replaced by one with the extension -.B "\&.gz," +.BR "\&.gz" , while keeping the same ownership modes, access and modification times. (The default extension is -.B "\-gz" -for VMS, .B "z" for MSDOS, OS/2 FAT, Windows NT FAT and Atari.) If no files are specified, or if a file name is "-", the standard input is @@ -58,21 +56,21 @@ keeps the original file name and timestamp in the compressed file. These are used when decompressing the file with the .B \-N option. This is useful when the compressed file name was truncated or -when the time stamp was not preserved after a file transfer. +when the timestamp was not preserved after a file transfer. .PP Compressed files can be restored to their original form using .I gzip -d or .I gunzip or -.I zcat. +.IR zcat . If the original name saved in the compressed file is not suitable for its file system, a new name is constructed from the original one to make it legal. .PP .I gunzip takes a list of files on its command line and replaces each -file whose name ends with .gz, -gz, .z, -z, _z or .Z +file whose name ends with .gz, -gz, .z, -z, or _z (ignoring case) and which begins with the correct magic number with an uncompressed file without the original extension. .I gunzip @@ -95,14 +93,19 @@ extension. .PP .I gunzip can currently decompress files created by -.I gzip, zip, compress, compress -H +.IR gzip , +.IR zip , +.IR compress , +.I "compress -H" or -.I pack. +.IR pack . The detection of the input format is automatic. When using the first two formats, .I gunzip checks a 32 bit CRC. For -.I pack, gunzip +.I pack +and +.I gunzip checks the uncompressed length. The standard .I compress format was not designed to allow consistency checks. However @@ -121,22 +124,28 @@ Files created by .I zip can be uncompressed by gzip only if they have a single member compressed with the 'deflation' method. This feature is only intended to help -conversion of tar.zip files to the tar.gz format. To extract zip files +conversion of tar.zip files to the tar.gz format. To extract a +.I zip +file with a single member, use a command like +.I "gunzip , +.BR , Internet RFC 1952 (May 1996). The .I zip deflation format is specified in P. Deutsch, \s-1DEFLATE\s0 Compressed Data Format Specification version 1.3, -.BR , +.BR , Internet RFC 1951 (May 1996). .SH "DIAGNOSTICS" Exit status is normally 0; if an error occurs, exit status is 1. If a warning occurs, exit status is 2. .TP -Usage: gzip [-cdfhlLnNrtvV19] [-S suffix] [file ...] +Usage: gzip [-cdfhklLnNrtvV19] [-S suffix] [file ...] Invalid options were specified on the command line. .TP \fIfile\fP\^: not in gzip format @@ -409,7 +443,7 @@ than the decompress code on this machine. Recompress the file with gzip, which compresses better and uses less memory. .TP -\fIfile\fP\^: already has .gz suffix -- no change +\fIfile\fP\^: already has .gz suffix -- unchanged The file is assumed to be already compressed. Rename the file and try again. .TP @@ -445,19 +479,10 @@ read and the whole block is passed to for decompression, .I gunzip detects that there is extra trailing garbage after the compressed data -and emits a warning by default. You have to use the --quiet option to -suppress the warning. This option can be set in the -.B GZIP -environment variable as in: - for sh: GZIP="-q" tar -xfz --block-compress /dev/rst0 - for csh: (setenv GZIP -q; tar -xfz --block-compr /dev/rst0 - -In the above example, gzip is invoked implicitly by the -z option of -GNU tar. Make sure that the same block size (-b option of tar) is used -for reading and writing compressed data on tapes. (This example -assumes you are using the GNU version of tar.) +and emits a warning by default. You can use the --quiet option to +suppress the warning. .SH BUGS -The gzip format represents the the input size modulo 2^32, so the +The gzip format represents the input size modulo 2^32, so the --list option reports incorrect uncompressed sizes and compression ratios for uncompressed files 4 GB and larger. To work around this problem, you can use the following command to discover a large @@ -472,9 +497,10 @@ In some rare cases, the --best option gives worse compression than the default compression level (-6). On some highly redundant files, .I compress compresses better than -.I gzip. +.IR gzip . .SH "COPYRIGHT NOTICE" -Copyright \(co 1998, 1999, 2001 Free Software Foundation, Inc. +Copyright \(co 1998-1999, 2001-2002, 2012, 2015-2018 Free Software Foundation, +Inc. .br Copyright \(co 1992, 1993 Jean-loup Gailly .PP