[JM:02495] [POST:DP] GNU gzip gzip.1

Back to archive index
matsuand michio_matsu****@yahoo*****
2021年 6月 13日 (日) 19:49:50 JST


<STATUS>
stat: DP
ppkg: GNU gzip 1.10
page: gzip.1
date: 2018/12/29
mail: michio_matsu****@yahoo*****
name: Michio MATSUYAMA
</STATUS>

.\"O .TH GZIP 1 local
.TH GZIP 1 local  
.\"O ----------------------------------------
.\"O .SH NAME
.\"O gzip, gunzip, zcat \- compress or expand files
.SH 名前
gzip, gunzip, zcat \- ファイルの圧縮、伸長を行う
.\"O ----------------------------------------
.\"O .SH SYNOPSIS
.\"O .ll +8
.\"O .B gzip
.\"O .RB [ " \-acdfhklLnNrtvV19 " ]
.\"O .RB [ \-S\ suffix ]
.\"O [
.\"O .I "name \&..."
.\"O ]
.\"O .ll -8
.\"O .br
.\"O .B gunzip
.\"O .RB [ " \-acfhklLnNrtvV " ]
.\"O .RB [ \-S\ suffix ]
.\"O [
.\"O .I "name \&..."
.\"O ]
.\"O .br
.\"O .B zcat
.\"O .RB [ " \-fhLV " ]
.\"O [
.\"O .I "name \&..."
.\"O ]
.SH 書式
.ll +8
\fBgzip\fP [\fB \-acdfhklLnNrtvV19 \fP] [\fB\-S\ suffix\fP] [ \fIname \&...\fP ]
.ll -8
.br
\fBgunzip\fP [\fB \-acfhklLnNrtvV \fP] [\fB\-S\ suffix\fP] [ \fIname \&...\fP ]
.br
\fBzcat\fP [\fB \-fhLV \fP] [ \fIname \&...\fP ]
.\"O ----------------------------------------
.\"O .SH DESCRIPTION
.\"O .I Gzip
.\"O reduces the size of the named files using Lempel-Ziv coding (LZ77).
.\"O Whenever possible,
.\"O each file is replaced by one with the extension
.\"O .BR "\&.gz" ,
.\"O while keeping the same ownership modes, access and modification times.
.\"O (The default extension is
.\"O .B "z"
.\"O for MSDOS, OS/2 FAT, Windows NT FAT and Atari.)
.\"O If no files are specified, or if a file name is "-", the standard input is
.\"O compressed to the standard output.
.\"O .I Gzip
.\"O will only attempt to compress regular files.
.\"O In particular, it will ignore symbolic links.
.SH 説明
\fIgzip\fP は Lempel\-Ziv コーディング (LZ77) を利用して、 指定されたファイルのサイズを小さくする。
各ファイルは所有権・アクセス時刻・修正時刻を保存したまま、 拡張子 \fB\&.gz\fP をつけたファイルに置き換えられる。
(デフォルトの拡張子は、MSDOS, OS/2 FAT, Windows NT FAT, Atari では \fBz\fP である。)
ファイルが指定されない場合、またはファイル名が "\-" の場合、 標準入力を圧縮して標準出力に書き出す。 \fIgzip\fP
は通常のファイルしか圧縮しようとしない。 特に、シンボリックリンクは無視される。
.\"O ----------------------------------------
.\"O .PP
.\"O If the compressed file name is too long for its file system,
.\"O .I gzip
.\"O truncates it.
.\"O .I Gzip
.\"O attempts to truncate only the parts of the file name longer than 3 characters.
.\"O (A part is delimited by dots.) If the name consists of small parts only,
.\"O the longest parts are truncated. For example, if file names are limited
.\"O to 14 characters, gzip.msdos.exe is compressed to gzi.msd.exe.gz.
.\"O Names are not truncated on systems which do not have a limit on file name
.\"O length.
.PP
圧縮されたファイル名が、そのファイルシステム上では長すぎる場合、 \fIgzip\fP はファイル名を切り詰める。 \fIgzip\fP はファイル名のうちの 4
文字以上のパートを切り詰めようとする。 (各パートはドットで区切られている。)  小さなパートだけからファイル名ができている場合、
もっとも長いパートが切り詰められる。 例えば、ファイル名が 14 文字までに制限されている場合、 gzip.msdos.exe は
gzi.msd.exe.gz という名前で圧縮される。 ファイル名の長さに制限がないシステムでは、 ファイル名が切り詰められることはない。
.\"O ----------------------------------------
.\"O .PP
.\"O By default,
.\"O .I gzip
.\"O keeps the original file name and timestamp in the compressed file. These
.\"O are used when decompressing the file with the
.\"O .B \-N
.\"O option. This is useful when the compressed file name was truncated or
.\"O when the timestamp was not preserved after a file transfer.
.PP
デフォルトでは、 \fIgzip\fP は圧縮ファイルの中に元ファイルの名前とタイムスタンプを保存する。 これらの情報はファイルを \fB\-N\fP
オプションで伸長するときに使われる。 これは、圧縮されたファイルの名前が切り詰められた場合や、
ファイル転送の後でタイムスタンプが保存されなかった場合に役立つ。
.\"O ----------------------------------------
.\"O .PP
.\"O Compressed files can be restored to their original form using
.\"O .I gzip -d
.\"O or
.\"O .I gunzip
.\"O or
.\"O .IR zcat .
.\"O If the original name saved in the compressed file is not suitable for its
.\"O file system, a new name is constructed from the original one to make it
.\"O legal.
.PP
圧縮されたファイルは \fIgzip \-d\fP, \fIgunzip\fP, \fIzcat\fP を使うと元の形に復元することができる。
圧縮ファイルに保存された元ファイルの名前がファイルシステムに適合しない場合、 そのファイルシステムに適合するように元の名前から新しい名前が作られる。
.\"O ----------------------------------------
.\"O .PP
.\"O .I gunzip
.\"O takes a list of files on its command line and replaces each
.\"O file whose name ends with .gz, -gz, .z, -z, or _z (ignoring case)
.\"O and which begins with the correct magic number with an uncompressed
.\"O file without the original extension.
.\"O .I gunzip
.\"O also recognizes the special extensions
.\"O .B "\&.tgz"
.\"O and
.\"O .B "\&.taz"
.\"O as shorthands for
.\"O .B "\&.tar.gz"
.\"O and
.\"O .B "\&.tar.Z"
.\"O respectively.
.\"O When compressing,
.\"O .I gzip
.\"O uses the
.\"O .B "\&.tgz"
.\"O extension if necessary instead of truncating a file with a
.\"O .B "\&.tar"
.\"O extension.
.PP
\fIgunzip\fP は、ファイル名が .gz, \-gz, .z, \-z, _z (大文字小文字は区別しない) で終わっており、
正しいマジックナンバーで始まっているファイルのリストを コマンドラインから受け取り、
伸長したファイルに置き換える。このとき圧縮ファイルの拡張子は取り除かれる。
\fIgunzip\fP は \fB\&.tgz\fP と \fB\&.taz\fP という特別な拡張子も認識する。
これらはそれぞれ、 \fB\&.tar.gz\fP と \fB\&.tar.Z\fP の省略形である。
圧縮するときに \fB\&.tar\fP という拡張子をもつファイルの名前を切り詰める必要があるなら、
\fIgzip\fP はかわりに \fB\&.tgz\fP という拡張子を使う。
.\"O ----------------------------------------
.\"O .PP
.\"O .I gunzip
.\"O can currently decompress files created by
.\"O .IR gzip ,
.\"O .IR zip ,
.\"O .IR compress ,
.\"O .I "compress -H"
.\"O or
.\"O .IR pack .
.\"O The detection of the input format is automatic.  When using
.\"O the first two formats,
.\"O .I gunzip
.\"O checks a 32 bit CRC. For
.\"O .I pack
.\"O and
.\"O .I gunzip
.\"O checks the uncompressed length. The standard
.\"O .I compress
.\"O format was not designed to allow consistency checks. However
.\"O .I gunzip
.\"O is sometimes able to detect a bad .Z file. If you get an error
.\"O when uncompressing a .Z file, do not assume that the .Z file is
.\"O correct simply because the standard
.\"O .I uncompress
.\"O does not complain. This generally means that the standard
.\"O .I uncompress
.\"O does not check its input, and happily generates garbage output.
.\"O The SCO compress -H format (lzh compression method) does not include a CRC
.\"O but also allows some consistency checks.
.PP
\fIgunzip\fP は \fIgzip\fP, \fIzip\fP, \fIcompress\fP, \fIcompress \-H\fP, \fIpack\fP
で作られたファイルを正しく伸長できる。 入力形式の検知は自動的に行われる。 はじめの 2 つの形式を使った場合、 \fIgunzip\fP は 32 ビットの
CRC をチェックする。 \fIpack\fP に対して、\fIgunzip\fP は伸長した長さをチェックする。 標準的な \fIcompress\fP
形式は、整合性チェックをするようには設計されていない。 しかし \fIgunzip\fP は壊れた .Z ファイルを検知することができる場合もある。.Z
ファイルを 伸長しているときにエラーが出たときには、 単に標準の \fIuncompress\fP がエラーを出さないという理由で .Z
ファイルが正しいと考えてはならない。 一般的にいうと、標準的な \fIuncompress\fP
は入力をチェックせず、脳天気にゴミを出力してしまうことがある。 SCO の compress \-H 形式 (lzh 圧縮法) は CRC
を含んでいないが、いくつかの整合性チェックができる。
.\"O ----------------------------------------
.\"O .PP
.\"O Files created by
.\"O .I zip
.\"O can be uncompressed by gzip only if they have a single member compressed
.\"O with the 'deflation' method. This feature is only intended to help
.\"O conversion of tar.zip files to the tar.gz format.  To extract a
.\"O .I zip
.\"O file with a single member, use a command like
.\"O .I "gunzip <foo.zip"
.\"O or
.\"O .IR "gunzip -S .zip foo.zip" .
.\"O To extract zip files
.\"O with several members, use
.\"O .I unzip
.\"O instead of
.\"O .IR gunzip .
.PP
\fIzip\fP によって作られたファイルは、'deflation' 法で圧縮された元ファイルを 1 つしか
含まない場合にだけ、gzip で伸長することができる。この特徴は、tar.zip ファイルを
tar.gz 形式へ変換する際の補助となることだけを意図している。
元ファイルが 1 つだけの \fIzip\fP ファイルを伸長するには、\fIgunzip <foo.zip\fP
や \fIgunzip \-S .zip foo.zip\fP といったコマンドを使用する。
複数の元ファイルを含んでいる zip ファイルを伸長するためには、
\fIgunzip\fP ではなく \fIunzip\fP を使うこと。
.\"O ----------------------------------------
.\"O .PP
.\"O .I zcat
.\"O is identical to
.\"O .I gunzip
.\"O .BR \-c .
.\"O (On some systems,
.\"O .I zcat
.\"O may be installed as
.\"O .I gzcat
.\"O to preserve the original link to
.\"O .IR compress .)
.\"O .I zcat
.\"O uncompresses either a list of files on the command line or its
.\"O standard input and writes the uncompressed data on standard output.
.\"O .I zcat
.\"O will uncompress files that have the correct magic number whether
.\"O they have a
.\"O .B "\&.gz"
.\"O suffix or not.
.PP
\fIzcat\fP は \fIgunzip\fP \fB\-c\fP と同一である。 (\fIcompress\fP へのオリジナルのリンクを保存するために、 \fIzcat\fP
が \fIgzcat\fP としてインストールされているシステムがあるかもしれない。)  \fIzcat\fP
はコマンドラインで指示されるファイルのリストまたは標準入力を伸長し、 伸長したデータを標準出力に書き出す。 \fIzcat\fP はファイルが
\fB\&.gz\fP という拡張子であるかどうかわらず、 正しいマジックナンバーを持っているファイルであれば伸長しようとする。
.\"O ----------------------------------------
.\"O .PP
.\"O .I Gzip
.\"O uses the Lempel-Ziv algorithm used in
.\"O .I zip
.\"O and PKZIP.
.\"O The amount of compression obtained depends on the size of the
.\"O input and the distribution of common substrings.
.\"O Typically, text such as source code or English
.\"O is reduced by 60\-70%.
.\"O Compression is generally much better than that achieved by
.\"O LZW (as used in
.\"O .IR compress ),
.\"O Huffman coding (as used in
.\"O .IR pack ),
.\"O or adaptive Huffman coding
.\"O .RI ( compact ).
.PP
\fIgzip\fP は \fIzip\fP と PKZIP で使われている Lempel\-Ziv アルゴリズムを使う。
得られる圧縮量は、入力のサイズと共通の部分データ列の分布に依存する。 一般に、ソースコードや英文といったテキストでは 60\-70% 小さくなる。
(\fIcompress\fP に使われている) LZW・ (\fIpack\fP に使われている) Huffman コーディング・ (\fIcompact\fP
に使われている) 適応 Huffman コーディング、 これらによる圧縮に比べて、この圧縮率は一般にかなり良い。
.\"O ----------------------------------------
.\"O .PP
.\"O Compression is always performed, even if the compressed file is
.\"O slightly larger than the original. The worst case expansion is
.\"O a few bytes for the gzip file header, plus 5 bytes every 32K block,
.\"O or an expansion ratio of 0.015% for large files. Note that the actual
.\"O number of used disk blocks almost never increases.
.\"O .I gzip
.\"O preserves the mode, ownership and timestamps of files when compressing
.\"O or decompressing.
.PP
たとえ圧縮されたファイルが元ファイルより少し大きくなるとしても、 圧縮は常に行われる。 最悪の場合、gzip ファイルヘッダのための数バイトと 32K
バイトブロック毎に 5 バイトの増加となり、 大きなファイルでは 0.015% の増加率となる。 ただし実際の使用ディスクブロック数は、
ほとんど絶対に増加しない。 \fIgzip\fP は圧縮、伸長時にファイルのアクセス権・所有者・タイムスタンプを保存する。
.\"O ----------------------------------------
.\"O .SH OPTIONS
.SH オプション
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-a --ascii
.\"O Ascii text mode: convert end-of-lines using local conventions. This option
.\"O is supported only on some non-Unix systems. For MSDOS, CR LF is converted
.\"O to LF when compressing, and LF is converted to CR LF when decompressing.
.TP 
\fB\-a \-\-ascii\fP
アスキーテキストモード:局所変換を使って行末の変換をする。 このオプションはいくつかの非 Unix システムでサポートされている。 MSDOS
では、圧縮時に CR LF が LF に変換され、 伸長時に LF が CR LF に変換される。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-c --stdout --to-stdout
.\"O Write output on standard output; keep original files unchanged.
.\"O If there are several input files, the output consists of a sequence of
.\"O independently compressed members. To obtain better compression,
.\"O concatenate all input files before compressing them.
.TP 
\fB\-c \-\-stdout \-\-to\-stdout\fP
出力を標準出力に書き出し、元ファイルを変更しない。 入力ファイルが複数ある場合、出力はファイル毎に圧縮されたものとなる。
圧縮率を上げるには、圧縮する前にすべての入力ファイルを (tar などで) まとめること。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-d --decompress --uncompress
.\"O Decompress.
.TP 
\fB\-d \-\-decompress \-\-uncompress\fP
伸長する。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-f --force
.\"O Force compression or decompression even if the file has multiple links
.\"O or the corresponding file already exists, or if the compressed data
.\"O is read from or written to a terminal. If the input data is not in
.\"O a format recognized by
.\"O .IR gzip ,
.\"O and if the option --stdout is also given, copy the input data without change
.\"O to the standard output: let
.\"O .I zcat
.\"O behave as
.\"O .IR cat .
.\"O If
.\"O .B \-f
.\"O is not given,
.\"O and when not running in the background,
.\"O .I gzip
.\"O prompts to verify whether an existing file should be overwritten.
.TP 
\fB\-f \-\-force\fP
ファイルが複数のリンクを張られていたり、 対応するファイルが既に存在していたり、 圧縮されたデータが端末に対して読み書きされてしているような場合でも、
強制的に圧縮、伸長を行う。 入力データが \fIgzip\fP で認識できない形式のときに \-\-stdout オプションが指定されていると、
入力データは変更なしに標準出力にコピーされる。 つまり、 \fIzcat\fP を \fIcat\fP として動作させる。 \fB\-f\fP
が指定されず、かつバックグラウンドで動作していない場合、 \fIgzip\fP は既に存在するファイルを上書きするかを問い合わせるプロンプトを出す。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-h --help
.\"O Display a help screen and quit.
.TP 
\fB\-h \-\-help\fP
ヘルプ画面を表示して終了する。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-k --keep
.\"O Keep (don't delete) input files during compression or decompression.
.TP 
\fB\-k \-\-keep\fP
圧縮中または伸長中に、入力ファイルを保持する (削除しない)。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-l --list
.\"O For each compressed file, list the following fields:
.TP 
\fB\-l \-\-list\fP
圧縮された個々のファイルについて、以下のフィールドを列挙する。
.\"O ----------------------------------------
.\"O 
.\"O     compressed size: size of the compressed file
.\"O     uncompressed size: size of the uncompressed file
.\"O     ratio: compression ratio (0.0% if unknown)
.\"O     uncompressed_name: name of the uncompressed file

    compressed size: 圧縮されたファイルのサイズ
    uncompressed size: 伸長されたファイルのサイズ
    ratio: 圧縮率 (不明の場合は 0.0%)
    uncompressed_name: 伸長されたファイルの名前
.\"O ----------------------------------------
.\"O 
.\"O The uncompressed size is given as -1 for files not in gzip format,
.\"O such as compressed .Z files. To get the uncompressed size for such a file,
.\"O you can use:

compress でつくられた .Z ファイルのように、 gzip 形式でないファイルの伸長時サイズは \-1 にされる。
そのようなファイルについて伸長されたファイルのサイズを求める場合は、
.\"O ----------------------------------------
.\"O 
.\"O     zcat file.Z | wc -c

    zcat file.Z | wc \-c
.\"O ----------------------------------------
.\"O 
.\"O In combination with the --verbose option, the following fields are also
.\"O displayed:

を使うこと。\-\-verbose オプションと組み合わせると 以下のフィールドも表示される。
.\"O ----------------------------------------
.\"O 
.\"O     method: compression method
.\"O     crc: the 32-bit CRC of the uncompressed data
.\"O     date & time: timestamp for the uncompressed file

    method: 圧縮法
    crc: 伸長されたデータの 32 ビット CRC
    date & time: 伸長されたファイルのタイムスタンプ
.\"O ----------------------------------------
.\"O 
.\"O The compression methods currently supported are deflate, compress, lzh
.\"O (SCO compress -H) and pack.  The crc is given as ffffffff for a file
.\"O not in gzip format.

現在サポートされている圧縮法は、deflate, compress, lzh (SCO compress \-H), pack である。 gzip
形式でないファイルについて、crc は ffffffff とされる。
.\"O ----------------------------------------
.\"O 
.\"O With --name, the uncompressed name,  date and time  are
.\"O those stored within the compress file if present.

\-\-name が同時に指定されると、(もし記録されているなら)  伸長されたファイルの名前・日付・時刻は 圧縮ファイル内に記録されているものになる。
.\"O ----------------------------------------
.\"O 
.\"O With --verbose, the size totals and compression ratio for all files
.\"O is also displayed, unless some sizes are unknown. With --quiet,
.\"O the title and totals lines are not displayed.

\-\-verbose が同時に指定されると、どれかのファイルのサイズが不明でない限り、 サイズの合計とその圧縮率も表示される。 \-\-quiet
が同時に指定されると、タイトルと合計の行は表示されない。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-L --license
.\"O Display the
.\"O .I gzip
.\"O license and quit.
.TP 
\fB\-L \-\-license\fP
\fIgzip\fP のライセンスを表示して終了する。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-n --no-name
.\"O When compressing, do not save the original file name and timestamp by
.\"O default. (The original name is always saved if the name had to be
.\"O truncated.) When decompressing, do not restore the original file name
.\"O if present (remove only the
.\"O .I gzip
.\"O suffix from the compressed file name) and do not restore the original
.\"O timestamp if present (copy it from the compressed file). This option
.\"O is the default when decompressing.
.TP 
\fB\-n \-\-no\-name\fP
デフォルトでは、圧縮時に元ファイルの名前とタイムスタンプを保存させない。 (元の名前を切り詰める必要がある場合は、元の名前は必ず保存される。)
伸長時に、元のファイル名が存在しても復元せず (圧縮ファイル名から \fIgzip\fP 拡張子を取り除くだけとし)、
元ファイルのタイムスタンプが存在しても復元しない (圧縮ファイルからコピーする)。 このオプションは伸長時のデフォルトである。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-N --name
.\"O When compressing, always save the original file name and timestamp; this
.\"O is the default. When decompressing, restore the original file name and
.\"O timestamp if present. This option is useful on systems which have
.\"O a limit on file name length or when the timestamp has been lost after
.\"O a file transfer.
.TP 
\fB\-N \-\-name\fP
圧縮時に元ファイルの名前とタイムスタンプを保存する。 これがデフォルトである。 伸長時に元ファイルの名前とタイムスタンプが存在するなら復元する。
このオプションは、ファイル名の長さに制限があるシステムや、 ファイル転送の後にタイムスタンプが失われた場合に役立つ。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-q --quiet
.\"O Suppress all warnings.
.TP 
\fB\-q \-\-quiet\fP
すべての警告を抑制する。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-r --recursive
.\"O Travel the directory structure recursively. If any of the file names
.\"O specified on the command line are directories,
.\"O .I gzip
.\"O will descend into the directory and compress all the files it finds there
.\"O (or decompress them in the case of
.\"O .I gunzip
.\"O ).
.TP 
\fB\-r \-\-recursive\fP
ディレクトリ構造を再帰的に巡る。 コマンドラインで指定されたファイル名がディレクトリであった場合、 \fIgzip\fP
はディレクトリに降りて、見つかったすべてのファイルを圧縮する (\fIgunzip\fP の場合は、すべてのファイルを伸長する)。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-S .suf   --suffix .suf
.\"O When compressing, use suffix .suf instead of .gz.
.\"O Any non-empty suffix can be given, but suffixes
.\"O other than .z and .gz should be avoided to avoid confusion when files
.\"O are transferred to other systems.
.TP 
\fB\-S .suf \-\-suffix .suf\fP
圧縮時には、拡張子 .gz のかわりに .suf を使う。 拡張子が空でなければ何でも指定することができるが、.z と .gz
以外の拡張子は使うべきでない。 他のシステムにファイルが転送されたときの混乱を避けるためである。
.\"O ----------------------------------------
.\"O 
.\"O When decompressing, add .suf to the beginning of the list of
.\"O suffixes to try, when deriving an output file name from an input file name.

伸長時には、拡張子リストの先頭に .suf の追加を試みる。 その際には入力ファイル名から出力ファイル名を抜き出す。
.\"O ----------------------------------------
.\"O .TP
.\"O .B --synchronous
.\"O Use synchronous output.  With this option,
.\"O .I gzip
.\"O is less likely to lose data during a system crash, but it can be
.\"O considerably slower.
.TP 
\fB\-\-synchronous\fP
同期出力を行う。 このオプションを用いると、システムクラッシュの際のデータ損失を抑えらるが、処理速度はかなり低下する。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-t --test
.\"O Test. Check the compressed file integrity.
.TP 
\fB\-t \-\-test\fP
テストする。圧縮ファイルの整合性をチェックする。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-v --verbose
.\"O Verbose. Display the name and percentage reduction for each file compressed
.\"O or decompressed.
.TP 
\fB\-v \-\-verbose\fP
詳細出力。圧縮、伸長される各ファイルについて名前と圧縮率を表示する。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-V --version
.\"O Version. Display the version number and compilation options then quit.
.TP 
\fB\-V \-\-version\fP
バージョン。バージョン番号とコンパイルオプションを表示して終了する。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-# --fast --best
.\"O Regulate the speed of compression using the specified digit
.\"O .IR # ,
.\"O where
.\"O .B \-1
.\"O or
.\"O .B \-\-fast
.\"O indicates the fastest compression method (less compression)
.\"O and
.\"O .B \-9
.\"O or
.\"O .B \-\-best
.\"O indicates the slowest compression method (best compression).
.\"O The default compression level is
.\"O .BR \-6
.\"O (that is, biased towards high compression at expense of speed).
.TP 
\fB\-# \-\-fast \-\-best\fP
指定した数字 \fI#\fP を用いて圧縮のスピードを調整する。 \fB\-1\fP と \fB\-\-fast\fP は最も速い圧縮法を示す (圧縮率は低い)。 \fB\-9\fP
と \fB\-\-best\fP は最も遅い圧縮法を示す (圧縮率は最も高い)。 デフォルトの圧縮レベルは \fB\-6\fP である
(つまり、速さを犠牲にして圧縮率の良い方にしてある)。
.\"O ----------------------------------------
.\"O .TP
.\"O .B \-\-rsyncable
.\"O When you synchronize a compressed file between two computers, this option allows rsync to transfer only files that were changed in the archive instead of the entire archive.
.\"O Normally, after a change is made to any file in the archive, the compression algorithm can generate a new version of the archive that does not match the previous version of the archive. In this case, rsync transfers the entire new version of the archive to the remote computer.
.\"O With this option, rsync can transfer only the changed files as well as a small amount of metadata that is required to update the archive structure in the area that was changed.
.TP 
\fB\-\-rsyncable\fP
2 つのコンピューター間で圧縮ファイルの同期を行う場合、 このオプションを用いると、 アーカイブ全体の同期をとるのではなく、 変更があったファイルのみを
rsync により転送できる。 通常、アーカイブ内のファイルに変更がかかった場合、 圧縮アルゴリズムは新たなバージョンのアーカイブを生成し、
これは以前のバージョンのアーカイブとは一致しない。 その場合 rsync は、リモートコンピューターに対して新たなバージョンのアーカイブ全体を転送する。
本オプションを用いると、変更がかかったファイルのみ、また最小限のメタデータのみを転送する。 これはアーカイブ内で変更がかかったthat is
required to update the archive structure in the area that was changed.
.\"O ----------------------------------------
.\"O .SH "ADVANCED USAGE"
.\"O Multiple compressed files can be concatenated. In this case,
.\"O .I gunzip
.\"O will extract all members at once. For example:
.SH 高度な使用法
複数の圧縮ファイルを連結することができる。 この場合、 \fIgunzip\fP はすべての圧縮ファイルを一度に伸長する。たとえば、
.\"O ----------------------------------------
.\"O 
.\"O       gzip -c file1  > foo.gz
.\"O       gzip -c file2 >> foo.gz

      gzip \-c file1  > foo.gz
      gzip \-c file2 >> foo.gz
.\"O ----------------------------------------
.\"O 
.\"O Then

の後に
.\"O ----------------------------------------
.\"O 
.\"O       gunzip -c foo

      gunzip \-c foo
.\"O ----------------------------------------
.\"O 
.\"O is equivalent to

とするのは、以下と同じである。
.\"O ----------------------------------------
.\"O 
.\"O       cat file1 file2

      cat file1 file2
.\"O ----------------------------------------
.\"O 
.\"O In case of damage to one member of a .gz file, other members can
.\"O still be recovered (if the damaged member is removed). However,
.\"O you can get better compression by compressing all members at once:

\&.gz ファイルのうち 1 つのファイルが壊れても、 (壊れたファイルを削除すれば) 他のファイルはまだ回復できる。
しかし、次のようにすべてのファイルを一度に圧縮すれば、より高い圧縮が得られる。
.\"O ----------------------------------------
.\"O 
.\"O       cat file1 file2 | gzip > foo.gz

      cat file1 file2 | gzip > foo.gz
.\"O ----------------------------------------
.\"O 
.\"O compresses better than

これは下の例より高く圧縮できる。
.\"O ----------------------------------------
.\"O 
.\"O       gzip -c file1 file2 > foo.gz

      gzip \-c file1 file2 > foo.gz
.\"O ----------------------------------------
.\"O 
.\"O If you want to recompress concatenated files to get better compression, do:

より高い圧縮を得るために、結合されたファイルをもう一度圧縮するには、 次のようにすること。
.\"O ----------------------------------------
.\"O 
.\"O       gzip -cd old.gz | gzip > new.gz

      gzip \-cd old.gz | gzip > new.gz
.\"O ----------------------------------------
.\"O 
.\"O If a compressed file consists of several members, the uncompressed
.\"O size and CRC reported by the --list option applies to the last member
.\"O only. If you need the uncompressed size for all members, you can use:

圧縮ファイルが複数の元ファイルで構成されている場合、 \-\-list オプションで表示される伸長時のサイズと CRC は、
最後の元ファイルについてのみ適用されたものである。 すべての元ファイルについて伸長時のサイズが必要な場合は、 次のコマンドを使うこと。
.\"O ----------------------------------------
.\"O 
.\"O       gzip -cd file.gz | wc -c

      gzip \-cd file.gz | wc \-c
.\"O ----------------------------------------
.\"O 
.\"O If you wish to create a single archive file with multiple members so
.\"O that members can later be extracted independently, use an archiver
.\"O such as tar or zip. GNU tar supports the -z option to invoke gzip
.\"O transparently. gzip is designed as a complement to tar, not as a
.\"O replacement.

複数の元ファイルからなる 1 つの書庫ファイルを作って、 後から元ファイルを別々に伸長できるようにしたいなら、 tar や zip
といったアーカイバーを使うこと。 GNU tar は gzip を透過的に起動するために \-z オプションをサポートしている。 gzip は tar
の代用としてではなく、補助として設計されている。
.\"O ----------------------------------------
.\"O .SH "ENVIRONMENT"
.\"O The obsolescent environment variable
.\"O .B GZIP
.\"O can hold a set of default options for
.\"O .IR gzip .
.\"O These options are interpreted first and can be overwritten by explicit
.\"O command line parameters.  As this can cause problems when using
.\"O scripts, this feature is supported only for options that are
.\"O reasonably likely to not cause too much harm, and
.\"O .I gzip
.\"O warns if it is used.
.\"O This feature will be removed in a future release of
.\"O .IR gzip .
.SH 環境変数
古い環境変数 \fBGZIP\fP には \fIgzip\fP のデフォルトのオプションセットを入れることができる。 これらのオプションは最初に解釈されるので、
明示的にコマンドラインパラメーターから上書きすることができる。 ただしスクリプトを用いる際には、 このことが問題になる場合がある。
したがってこの機能は、あまり支障のないと考えられるオプションに対してのみサポートされており、 仮に使用された場合 \fIgzip\fP は警告表示する。
この機能は \fIgzip\fP の将来バージョンにおいて削除される予定である。
.\"O ----------------------------------------
.\"O .PP
.\"O You can use an alias or script instead.  For example, if
.\"O .I gzip
.\"O is in the directory
.\"O .B /usr/bin
.\"O you can prepend
.\"O .B $HOME/bin
.\"O to your
.\"O .B PATH
.\"O and create an executable script
.\"O .B $HOME/bin/gzip
.\"O containing the following:
.PP
上のかわりとして、 エイリアスまたはスクリプトの利用が可能である。 たとえば、\fIgzip\fP がディレクトリ \fB/usr/bin\fP にある場合、
\fBPATH\fP 変数に \fB$HOME/bin\fP を追加し、以下のような内容を含んだ実行スクリプト \fB$HOME/bin/gzip\fP
を生成すればよい。
.\"O ----------------------------------------
.\"O 
.\"O       #! /bin/sh
.\"O       export PATH=/usr/bin
.\"O       exec gzip \-9 "$@"

      #! /bin/sh
      export PATH=/usr/bin
      exec gzip \-9 "$@"
.\"O ----------------------------------------
.\"O .SH "SEE ALSO"
.\"O znew(1), zcmp(1), zmore(1), zforce(1), gzexe(1), zip(1), unzip(1), compress(1)
.SH 関連項目
znew(1), zcmp(1), zmore(1), zforce(1), gzexe(1), zip(1), unzip(1),
compress(1)
.\"O ----------------------------------------
.\"O .PP
.\"O The
.\"O .I gzip
.\"O file format is specified in P. Deutsch, \s-1GZIP\s0 file format
.\"O specification version 4.3,
.\"O .BR <https://www.ietf.org/rfc/rfc1952.txt> ,
.\"O Internet RFC 1952 (May 1996).
.\"O The
.\"O .I zip
.\"O deflation format is specified in P. Deutsch, \s-1DEFLATE\s0 Compressed
.\"O Data Format Specification version 1.3,
.\"O .BR <https://www.ietf.org/rfc/rfc1951.txt> ,
.\"O Internet RFC 1951 (May 1996).
.PP
\fIgzip\fP ファイル形式は P. Deutsch, \s-1GZIP\s0 file format
specification version 4.3,
\fB<https://www.ietf.org/rfc/rfc1952.txt>\fP, Internet RFC 1952
(May 1996) で規定されている。\fIzip\fP deflation 形式は P. Deutsch,
\s-1DEFLATE\s0 Compressed Data Format Specification version 1.3,
\fB<https://www.ietf.org/rfc/rfc1951.txt>\fP, Internet RFC 1951
(May 1996) で規定されている。
.\"O ----------------------------------------
.\"O .SH "DIAGNOSTICS"
.\"O Exit status is normally 0;
.\"O if an error occurs, exit status is 1. If a warning occurs, exit status is 2.
.SH 返り値
通常、終了ステータスは 0 である。 エラーが起きた場合、終了ステータスは 1 である。 警告が起きた場合、終了ステータスは 2 である。
.\"O ----------------------------------------
.\"O .TP
.\"O Usage: gzip [-cdfhklLnNrtvV19] [-S suffix] [file ...]
.\"O Invalid options were specified on the command line.
.TP 
Usage: gzip [\-cdfhklLnNrtvV19] [\-S suffix] [file ...]
無効なオプションがコマンドラインから指定された。
.\"O ----------------------------------------
.\"O .TP
.\"O \fIfile\fP\^: not in gzip format
.\"O The file specified to
.\"O .I gunzip
.\"O has not been compressed.
.TP 
\fIfile\fP\^: not in gzip format
\fIgunzip\fP に指示されたファイルが圧縮されたものではない。
.\"O ----------------------------------------
.\"O .TP
.\"O \fIfile\fP\^: Corrupt input. Use zcat to recover some data.
.\"O The compressed file has been damaged. The data up to the point of failure
.\"O can be recovered using
.TP 
\fIfile\fP\^: Corrupt input. Use zcat to recover some data.
圧縮されたファイルが壊れている。 破損した位置までのデータは、次のコマンドを使って修復できる。
.\"O ----------------------------------------
.\"O 
.\"O       zcat \fIfile\fP > recover

      zcat \fIfile\fP > recover
.\"O ----------------------------------------
.\"O .TP
.\"O \fIfile\fP\^: compressed with \fIxx\fP bits, can only handle \fIyy\fP bits
.\"O .I File
.\"O was compressed (using LZW) by a program that could deal with
.\"O more
.\"O .I bits
.\"O than the decompress code on this machine.
.\"O Recompress the file with gzip, which compresses better and uses
.\"O less memory.
.TP 
\fIfile\fP\^: compressed with \fIxx\fP bits, can only handle \fIyy\fP bits
\fIファイル\fP が、このマシン上での伸長コードより多くの \fIビット\fP を扱うことができるプログラムで (LZW を使って) 圧縮されている。
より高い圧縮ができ、メモリ使用量の少ない、gzip を使って ファイルを再圧縮すること。
.\"O ----------------------------------------
.\"O .TP
.\"O \fIfile\fP\^: already has .gz suffix -- unchanged
.\"O The file is assumed to be already compressed.
.\"O Rename the file and try again.
.TP 
\fIfile\fP\^: already has .gz suffix \-\- unchanged
ファイルが既に圧縮されていると考えられる。 ファイル名を変更し、再度試みること。
.\"O ----------------------------------------
.\"O .TP
.\"O \fIfile\fP already exists; do you wish to overwrite (y or n)?
.\"O Respond "y" if you want the output file to be replaced; "n" if not.
.TP 
\fIfile\fP already exists; do you wish to overwrite (y or n)?
出力ファイルで置き換えたいなら "y" と答えること。 さもなければ、"n" と答えること。
.\"O ----------------------------------------
.\"O .TP
.\"O gunzip: corrupt input
.\"O A SIGSEGV violation was detected which usually means that the input file has
.\"O been corrupted.
.TP 
gunzip: corrupt input
SIGSEGV 違反が検知された。通常は、入力ファイルが壊れていることを意味している。
.\"O ----------------------------------------
.\"O .TP
.\"O \fIxx.x%\fP Percentage of the input saved by compression.
.\"O (Relevant only for
.\"O .BR \-v
.\"O and
.\"O .BR \-l \.)
.TP 
\fIxx.x%\fP 圧縮により節約された入力のパーセント表示。
(\fB\-v\fP と \fB\-l\fP のみに関連する。)
.\"O ----------------------------------------
.\"O .TP
.\"O -- not a regular file or directory: ignored
.\"O When the input file is not a regular file or directory,
.\"O (e.g. a symbolic link, socket, FIFO, device file), it is
.\"O left unaltered.
.TP 
\-\- not a regular file or directory: ignored
入力ファイルが通常ファイルでもディレクトリでもない場合 (たとえば、シンボリックリンク・ソケット・FIFO・デバイスファイルの場合)、
変更せずにそのままにされる。
.\"O ----------------------------------------
.\"O .TP
.\"O -- has \fIxx\fP other links: unchanged
.\"O The input file has links; it is left unchanged.  See
.\"O .IR ln "(1)"
.\"O for more information. Use the
.\"O .B \-f
.\"O flag to force compression of multiply-linked files.
.TP 
\-\- has \fIxx\fP other links: unchanged
入力ファイルにリンクが張られているので、変更しない。 詳しい情報は \fIln\fP(1)  を参照すること。
複数にリンクが張られているファイルを強制的に圧縮するには \fB\-f\fP フラグを使うこと。
.\"O ----------------------------------------
.\"O .SH CAVEATS
.\"O When writing compressed data to a tape, it is generally necessary to
.\"O pad the output with zeroes up to a block boundary. When the data is
.\"O read and the whole block is passed to
.\"O .I gunzip
.\"O for decompression,
.\"O .I gunzip
.\"O detects that there is extra trailing garbage after the compressed data
.\"O and emits a warning by default.  You can use the --quiet option to
.\"O suppress the warning.
.SH 重要な注意
圧縮されたデータをテープに書き込むときは、 一般的に、出力のブロック境界をゼロで埋める必要がある。 伸長のためにデータを読み込んですべてのブロックを
\fIgunzip\fP に渡すと、 \fIgunzip\fP は通常、圧縮されたデータの後ろに余分なゴミが続いていると検知して、 警告を発する。
この警告を抑制するには \-\-quiet オプションを使えばよい。
.\"O ----------------------------------------
.\"O .SH BUGS
.\"O The gzip format represents the input size modulo 2^32, so the
.\"O --list option reports incorrect uncompressed sizes and compression
.\"O ratios for uncompressed files 4 GB and larger.  To work around this
.\"O problem, you can use the following command to discover a large
.\"O uncompressed file's true size:
.SH バグ
gzip 形式では、入力サイズは 2^32 の余りで表現されるため、 \-\-list オプション
による表示では、圧縮前のファイルが 4GB 以上の場合、圧縮前のサイズや圧縮率が
正しく表示されない。以下のコマンドを使うと、この問題に抵触せずに、
大きな圧縮ファイルの本当のサイズを知ることができる。
.\"O ----------------------------------------
.\"O 
.\"O       zcat file.gz | wc -c

      zcat file.gz | wc \-c
.\"O ----------------------------------------
.\"O 
.\"O The --list option reports sizes as -1 and crc as ffffffff if the
.\"O compressed file is on a non seekable media.

圧縮ファイルがシークをサポートしていないメディア上に存在する場合、 \-\-list オプションによる表示は、
サイズが \-1、crc が ffffffff となる。
.\"O ----------------------------------------
.\"O 
.\"O In some rare cases, the --best option gives worse compression than
.\"O the default compression level (-6). On some highly redundant files,
.\"O .I compress
.\"O compresses better than
.\"O .IR gzip .

まれに \-\-best オプションによって、デフォルトの圧縮レベル (\-6) より 圧縮が悪くなることがある。 非常に冗長なファイルでは、
\fIcompress\fP による圧縮が \fIgzip\fP より良くなることがある。
.\"O ----------------------------------------
.\"O .SH "COPYRIGHT NOTICE"
.\"O Copyright \(co 1998-1999, 2001-2002, 2012, 2015-2018 Free Software Foundation,
.\"O Inc.
.\"O .br
.\"O Copyright \(co 1992, 1993 Jean-loup Gailly
.SH 著作権表示
Copyright \(co 1998\-1999, 2001\-2002, 2012, 2015\-2018 Free Software
Foundation, Inc.
.br
Copyright \(co 1992, 1993 Jean\-loup Gailly
.\"O ----------------------------------------
.\"O .PP
.\"O Permission is granted to make and distribute verbatim copies of
.\"O this manual provided the copyright notice and this permission notice
.\"O are preserved on all copies.
.\"O .ig
.\"O Permission is granted to process this file through troff and print the
.\"O results, provided the printed document carries copying permission
.\"O notice identical to this one except for the removal of this paragraph
.\"O (this paragraph not being relevant to the printed manual).
.\"O ..
.PP
Permission is granted to make and distribute verbatim copies of this manual
provided the copyright notice and this permission notice are preserved on
all copies.
.ig
Permission is granted to process this file through troff and print the
results, provided the printed document carries copying permission
notice identical to this one except for the removal of this paragraph
(this paragraph not being relevant to the printed manual).
..
.\"O ----------------------------------------
.\"O .PP
.\"O Permission is granted to copy and distribute modified versions of this
.\"O manual under the conditions for verbatim copying, provided that the entire
.\"O resulting derived work is distributed under the terms of a permission
.\"O notice identical to this one.
.PP
Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the entire
resulting derived work is distributed under the terms of a permission notice
identical to this one.
.\"O ----------------------------------------
.\"O .PP
.\"O Permission is granted to copy and distribute translations of this manual
.\"O into another language, under the above conditions for modified versions,
.\"O except that this permission notice may be stated in a translation approved
.\"O by the Foundation.
.PP
Permission is granted to copy and distribute translations of this manual
into another language, under the above conditions for modified versions,
except that this permission notice may be stated in a translation approved
by the Foundation.
.\"O ----------------------------------------



linuxjm-discuss メーリングリストの案内
Back to archive index