File: gzip.1

package info (click to toggle)
manpages-ja 0.5.0.0.20061115-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 19,788 kB
  • ctags: 4
  • sloc: sh: 13,215; perl: 157; makefile: 117
file content (541 lines) | stat: -rw-r--r-- 15,179 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
.\"   Copyright (C) 1994-1999 Free Software Foundation, Inc.
.\"
.\"   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.
.\"
.\"   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.
.\"
.\"   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.
.\"
.\" Japanese Version Copyright (c) 1993-2000 
.\" NetBSD jman proj. and Yuichi SATO
.\"         all rights reserved. 
.\" Translated Fri Oct 15 1993
.\" 	    by NetBSD jman proj. <jman@spa.is.uec.ac.jp>
.\" Updated Fri Jun  9 15:11:14 JST 2000
.\"         by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
.\"
.\"WORD:	compress	̤
.\"WORD:	expand		Ĺ
.\"WORD:	decompress	Ĺ
.\"WORD:	uncompress	Ĺ
.\"WORD:	consistency	
.\"WORD:	integrity	
.\"WORD:	concatenate	Ϣ뤹
.\"WORD:	keep		¸
.\"WORD:	mode		
.\"WORD:	restore		
.\"WORD:	pad		
.\"WORD:	redundant	Ĺ
.\"WORD:	archiver	С
.\"WORD:	verbose		ܺٽ
.\"
.PU
.TH GZIP 1 local
.SH ̾
gzip, gunzip, zcat \- եΰ̡ĹԤ
.SH 
.ll +8
.B gzip
.RB [ " \-acdfhlLnNrtvV19 " ]
.RB [ \-S\ suffix ]
[
.I "name \&..."
]
.ll -8
.br
.B gunzip
.RB [ " \-acfhlLnNrtvV " ]
.RB [ \-S\ suffix ]
[
.I "name \&..."
]
.br
.B zcat
.RB [ " \-fhLV " ]
[
.I "name \&..."
]
.SH 
.I gzip
 Lempel-Ziv ǥ (LZ77) Ѥơ
ꤵ줿եΥ򾮤롣
ƥեϽͭ¸ޤޡ
ĥ
.B "\&.gz"
Ĥե֤롣
(ǥեȤγĥҤϡVMSǤ
.BR "\-gz",
MSDOS, OS/2 FAT, Windows NT FAT, Atari Ǥ
.B "z"
Ǥ롣)
ե뤬ꤵʤ硢ޤϥե̾ "-" ξ硢
ɸϤ򰵽̤ɸϤ˽񤭽Ф
.I gzip
̾Υե뤷̤褦Ȥʤ
äˡܥå󥯤̵뤵롣
.PP
̤줿ե̾Υե륷ƥǤĹ硢
.I gzip
ϥե̾ڤͤ롣
.I gzip
ϥե̾Τ 4 ʸʾΥѡȤڤͤ褦Ȥ롣
(ƥѡȤϥɥåȤǶڤƤ롣)
ʥѡȤե̾ǤƤ硢
äȤĹѡȤڤͤ롣
㤨Сե̾ 14 ʸޤǤ¤Ƥ硢
gzip.msdos.exe  gzi.msd.exe.gz Ȥ̾ǰ̤롣
ե̾ŤʤƥǤϡ
ե̾ڤͤ뤳ȤϤʤ
.PP
ǥեȤǤϡ
.I gzip
ϰ̥ե˸ե̾ȥॹפ¸롣
ξϥե
.B \-N
ץǿĹȤ˻Ȥ롣
ϡ̤줿ե̾ڤͤ줿䡢
եžθǥॹפ¸ʤäΩġ
.PP
̤줿ե
.IR "gzip -d" ,
.IR "gunzip" ,
.I zcat
Ȥȸη뤳ȤǤ롣
̥ե¸줿ե̾ե륷ƥŬ礷ʤ硢
Υե륷ƥŬ礹褦˸̾鿷̾롣
.PP
.I gunzip
ϡե̾ .gz, -gz, .z, -z, _z, .Z ǤäƤꡢ
ޥåʥСǻϤޤäƤեΥꥹȤ
ޥɥ饤󤫤ꡢ
Ĺե֤롣
ΤȤ̥եγĥҤϼ롣
.I gunzip

.B "\&.tgz"

.B "\&.taz"
Ȥ̤ʳĥҤǧ롣
Ϥ줾졢
.B "\&.tar.gz"

.B "\&.tar.Z"
ξάǤ롣
̤Ȥ
.B "\&.tar"
ȤĥҤĥե̾ڤͤɬפʤ顢
.I gzip
Ϥ
.B "\&.tgz"
ȤĥҤȤ
.PP
.I gunzip

.I gzip, zip, compress, compress -H, pack
Ǻ줿եĹǤ롣
ϷθΤϼưŪ˹Ԥ롣
Ϥ 2 ĤηȤä硢
.I gunzip
 32 ӥåȤ CRC å롣
.I pack
Фơgunzip ϿĹĹå롣
ɸŪ
.I compress
ϡå򤹤褦ˤ߷פƤʤ

.I gunzip
ϲ줿 .Z եΤ뤳ȤǤ⤢롣.Z ե
ĹƤȤ˥顼ФȤˤϡ
ñɸ
.I uncompress
顼ФʤȤͳ .Z ե뤬ȹͤƤϤʤʤ
ŪˤȡɸŪ
.I uncompress
ϤåǾŷ˥ߤϤƤޤȤ롣
SCO  compress -H  (lzh ˡ) 
CRC ޤǤʤĤåǤ롣
.PP
.I zip
ˤäƺ줿եϡ'deflation' ˡǰ̤줿ե
1 Ĥޤޤʤˤgzip ǿĹ뤳ȤǤ롣
ħϡtar.zip ե tar.gz Ѵݤ
Ȥʤ뤳ȤտޤƤ롣
ʣθեޤǤ zip եĹ뤿ˤϡ
.I gunzip
ǤϤʤ
.I unzip
Ȥȡ
.PP
.I zcat

.I gunzip
.B \-c
ƱǤ롣
(\fIcompress\fR
ؤΥꥸʥΥ󥯤¸뤿ˡ
.I zcat

.I gzcat
Ȥƥ󥹥ȡ뤵Ƥ륷ƥब뤫⤷ʤ)
.I zcat
ϥޥɥ饤ǻؼեΥꥹȤޤɸϤĹ
ĹǡɸϤ˽񤭽Ф
.I zcat
ϥե뤬
.B "\&.gz"
ȤĥҤǤ뤫ɤ餺
ޥåʥСäƤեǤпĹ褦Ȥ롣
.PP
.I gzip

.I zip
 PKZIP ǻȤƤ Lempel-Ziv 르ꥺȤ
밵̤ϡϤΥȶ̤ʬǡʬۤ˰¸롣
̤ˡɤʸȤäƥȤǤ
60\-70% ʤ롣
(\fIcompress\fR ˻ȤƤ) LZW
(\fIpack\fR ˻ȤƤ) Huffman ǥ󥰡
(\fIcompact\fR ˻ȤƤ) Ŭ Huffman ǥ󥰡
ˤ밵̤٤ơΰΨϰ̤ˤʤɤ
.PP
Ȥ̤줿ե뤬ե꾯礭ʤȤƤ⡢
̤Ͼ˹Ԥ롣
ǰξ硢gzip եإåΤοХȤ
32K Хȥ֥å 5 ХȤäȤʤꡢ
礭ʥեǤ 0.015% ΨȤʤ롣
ºݤλѥǥ֥åϡ
ۤȤФäʤ
.I gzip
ϰ̡Ĺ˥եΥͭԡॹפ¸롣

.SH ץ
.TP
.B \-a --ascii
ƥȥ⡼ɡɽѴȤäƹѴ򤹤롣
ΥץϤĤ Unix ƥǥݡȤƤ롣
MSDOS Ǥϡ̻ CR LF  LF Ѵ졢
Ĺ LF  CR LF Ѵ롣
.TP
.B \-c --stdout --to-stdout
ϤɸϤ˽񤭽Фեѹʤ
ϥե뤬ʣ硢Ϥϥե˰̤줿ΤȤʤ롣
Ψ夲ˤϡ̤ˤ٤Ƥϥե
(tar ʤɤ) ޤȤ뤳ȡ
.TP
.B \-d --decompress --uncompress
Ĺ롣
.TP
.B \-f --force
ե뤬ʣΥ󥯤ĥƤꡢ
бե뤬¸ߤƤꡢ
̤줿ǡüФɤ߽񤭤ƤƤ褦ʾǤ⡢
Ū˰̡ĹԤ
ϥǡ
.I gzip
ǧǤʤΤȤ --stdout ץ󤬻ꤵƤȡ
ϥǡѹʤɸϤ˥ԡ롣
Ĥޤꡢ
.I zcat

.I cat
Ȥư롣
.B \-f
ꤵ줺ĥХå饦ɤưƤʤ硢
.I gzip
ϴ¸ߤե񤭤뤫䤤碌ץץȤФ
.TP
.B \-h --help
إײ̤ɽƽλ롣
.TP
.B \-l --list
̤줿ġΥեˤĤơʲΥեɤ󤹤롣

    compressed size: ̤줿եΥ
    uncompressed size: Ĺ줿եΥ
    ratio: Ψ (ξ 0.0%)
    uncompressed_name: Ĺ줿ե̾

compress ǤĤ줿 .Z եΤ褦ˡ
gzip ǤʤեοĹ -1 ˤ롣
Τ褦ʥեˤĤƿĹ줿եΥϡ

    zcat file.Z | wc -c

Ȥȡ--verbose ץȤ߹碌
ʲΥեɤɽ롣

    method: ˡ
    crc: Ĺ줿ǡ 32 ӥå CRC
    date & time: Ĺ줿եΥॹ

ߥݡȤƤ밵ˡϡdeflate, compress,
lzh (SCO compress -H), pack Ǥ롣
gzip ǤʤեˤĤơcrc  ffffffff Ȥ롣 

--name Ʊ˻ꤵȡ(⤷ϿƤʤ) 
Ĺ줿ե̾ա
̥ե˵ϿƤΤˤʤ롣

--verbose Ʊ˻ꤵȡɤ줫ΥեΥǤʤ¤ꡢ
ιפȤΰΨɽ롣
--quiet Ʊ˻ꤵȡȥȹפιԤɽʤ
.TP
.B \-L --license
.I gzip
Υ饤󥹤ɽƽλ롣
.TP
.B \-n --no-name
ǥեȤǤϡ̻˸ե̾ȥॹפ¸ʤ
(̾ڤͤɬפϡ̾ɬ¸롣)
ĹˡΥե̾¸ߤƤ
(̥ե̾
.I gzip
ĥҤȤ)
եΥॹפ¸ߤƤʤ
(̥ե뤫饳ԡ)
ΥץϿĹΥǥեȤǤ롣
.TP
.B \-N --name
̻˸ե̾ȥॹפ¸롣
줬ǥեȤǤ롣
Ĺ˸ե̾ȥॹפ¸ߤʤ롣
Υץϡե̾Ť륷ƥ䡢
եžθ˥ॹפ줿Ωġ
.TP
.B \-q --quiet
٤Ƥηٹ롣
.TP
.B \-r --recursive
ǥ쥯ȥ깽¤ƵŪ˽롣
ޥɥ饤ǻꤵ줿ե̾ǥ쥯ȥǤä硢
.I gzip
ϥǥ쥯ȥ˹ߤơĤä٤ƤΥե򰵽̤
(\fIgunzip\fR
ξϡ٤ƤΥեĹ)
.TP
.B \-S .suf   --suffix .suf
ĥ .gz Τ .suf Ȥ
ɤΤ褦ʳĥҤǤꤹ뤳ȤǤ뤬.z  .gz ʳγĥҤ
Ȥ٤Ǥʤ
¾Υƥ˥ե뤬ž줿Ȥκ򤱤뤿Ǥ롣
ĥҤʤξ硢ʲΤ褦˳ĥҤ˴طʤ
٤Ƥλؼ줿ե gunzip ˿Ĺ뤳ȤǤ롣

    gunzip -S "" *       (MSDOS ξ *.*)

ΥС gzip ϳĥ .z Ȥä

.IR pack "(1)"
Ȥξͤ򤱤뤿ѹ줿
.TP
.B \-t --test
ƥȤ롣̥եå롣
.TP
.B \-v --verbose
ܺٽϡ̡ĹƥեˤĤ̾ȰΨɽ롣
.TP
.B \-V --version
С󡣥Сֹȥѥ륪ץɽƽλ롣
.TP
.B \-# --fast --best
.I #
Ѥư̤ΥԡɤĴ롣
.B \-1

.B \-\-fast
ϺǤ®ˡ򼨤 (Ψ㤤)
.B \-9

.B \-\-best
ϺǤ٤ˡ򼨤 (ΨϺǤ⤤)
ǥեȤΰ̥٥
.B \-6
Ǥ (Ĥޤꡢ®ˤưΨɤˤƤ)
.SH ٤ʻˡ
ʣΰ̥եϢ뤹뤳ȤǤ롣
ξ硢
.I gunzip
Ϥ٤Ƥΰ̥ե٤˿Ĺ롣ȤС

      gzip -c file1  > foo.gz
      gzip -c file2 >> foo.gz

θ
      gunzip -c foo

ȤΤϡʲƱǤ롣

      cat file1 file2

\&.gz եΤ 1 ĤΥե뤬Ƥ⡢
(줿ե) ¾ΥեϤޤǤ롣
Τ褦ˤ٤ƤΥե٤˰̤С⤤̤롣

      cat file1 file2 | gzip > foo.gz

ϲ⤯̤Ǥ롣

      gzip -c file1 file2 > foo.gz

⤤̤뤿ˡ礵줿ե⤦ٰ̤ˤϡ
Τ褦ˤ뤳ȡ

      gzip -cd old.gz | gzip > new.gz

̥ե뤬ʣθեǹƤ硢
--list ץɽ뿭ĹΥ CRC ϡ
ǸθեˤĤƤΤŬѤ줿ΤǤ롣
٤ƤθեˤĤƿĹΥɬפʾϡ
ΥޥɤȤȡ

      gzip -cd file.gz | wc -c

ʣθե뤫ʤ 1 Ĥν˥եäơ
夫鸵ե̡˿ĹǤ褦ˤʤ顢
tar  zip ȤäСȤȡ
GNU tar  gzip ƩŪ˵ư뤿 -z ץ򥵥ݡȤƤ롣
gzip  tar ѤȤƤǤϤʤȤ߷פƤ롣
.SH Ķѿ
Ķѿ
.B GZIP

.I gzip
ΥǥեȤΥץ󥻥åȤ뤳ȤǤ롣
ΥץϺǽ˲ᤵΤǡ
Ūʥޥɥ饤ѥ᡼Ǿ񤭤뤳ȤǤ롣
򼨤
      sh ξ:    GZIP="-8v --name"; export GZIP
      csh ξ:   setenv GZIP "-8v --name"
      MSDOS ξ: set GZIP=-8v --name

Vax/VMS ǤϡĶѿ̾ GZIP_OPT Ǥ롣
ϡץƤӽФΥܥ륻åȤȤξͤ򤱤뤿Ǥ롣
.SH Ϣ
znew(1), zcmp(1), zmore(1), zforce(1), gzexe(1), zip(1), unzip(1), compress(1),
pack(1), compact(1)
.SH ֤
̾λ֤ 0 Ǥ롣
顼硢λ֤ 1 Ǥ롣
ٹ𤬵硢λ֤ 2 Ǥ롣
.PP
Usage: gzip [-cdfhlLnNrtvV19] [-S suffix] [file ...]
.in +8
̵ʥץ󤬥ޥɥ饤󤫤ꤵ줿
.in -8
.IR file :
not in gzip format
.in +8
.I gunzip
˻ؼ줿ե뤬̤줿ΤǤϤʤ
.in -8
.IR file:
Corrupt input. Use zcat to recover some data.
.in +8
̤줿ե뤬Ƥ롣
»֤ޤǤΥǡϡΥޥɤȤäƽǤ롣
.in +8
zcat file > recover
.in -16
.IR file :
compressed with 
.I xx
bits, can only handle 
.I yy
bits
.in +8
.I ե
ΥޥǤοĹɤ¿
.I ӥå
򰷤ȤǤץ (LZW Ȥä) ̤Ƥ롣
⤤̤Ǥ̤ξʤgzip Ȥä
եư̤뤳ȡ
.in -8
.IR file :
already has .gz suffix -- no change
.in +8
ե뤬˰̤Ƥȹͤ롣
ե̾ѹٻߤ뤳ȡ
.in -8
.I file
already exists; do you wish to overwrite (y or n)?
.in +8
ϥե֤ʤ "y" 뤳ȡ
ʤС"n" 뤳ȡ
.in -8
gunzip: corrupt input
.in +8
SIGSEGV ȿΤ줿̾ϡϥե뤬Ƥ뤳Ȥ̣Ƥ롣
.in -8
.I "xx.x%"
.in +8
̤ˤ긺äϤΥѡɽ
(\fB\-v\fR 
.B \-l
Τߤ˴Ϣ롣)
.in -8
-- not a regular file or directory: ignored
.in +8
ϥե뤬̾եǤǥ쥯ȥǤʤ
(ȤСܥå󥯡åȡFIFOǥХեξ)
ѹˤΤޤޤˤ롣
.in -8
-- has 
.I xx 
other links: unchanged
.in +8
ϥե˥󥯤ĥƤΤǡѹʤ
ܤ
.IR ln "(1)"
򻲾Ȥ뤳ȡ
ʣ˥󥯤ĥƤեŪ˰̤ˤ
.B \-f
ե饰Ȥȡ
.in -8
.SH ٹ
̤줿ǡơפ˽񤭹Ȥϡ
ŪˡϤΥ֥å򥼥ɬפ롣
ĹΤ˥ǡɤ߹Ǥ٤ƤΥ֥å
.I gunzip
Ϥȡ
.I gunzip
̾̤줿ǡθ;ʬʥߤ³ƤȸΤơ
ٹȯ롣
ηٹˤ --quiet ץȤɬפ롣
ΥץϴĶѿ
.B GZIP
˼Τ褦ˤǤ롣
  sh ξ:  GZIP="-q"  tar -xfz --block-compress /dev/rst0
  csh ξ: (setenv GZIP -q; tar -xfz --block-compress /dev/rst0

Ǥϡgzip  GNU tar  -z ץˤäưŤ˸ƤӽФƤ롣
ơ׾ΰ̤줿ǡɤ߽ФȽ񤭹ߤ
Ʊ֥å (tar  -b ץ) ȤƤ뤳Ȥդ뤳ȡ
(ϡGNU Ǥ tar ȤȤꤷƤ롣)
.SH Х
 2GB ۤ硢--list ץˤɽʤ
̥ե뤬ԲΤξ¸ߤ硢
--list ץˤɽϡ -1crc  ffffffff Ȥʤ롣

 --best ץˤäơǥեȤΰ̥٥ (-6) 
̤ʤ뤳Ȥ롣
˾ĹʥեǤϡ
.I compress
ˤ밵̤
.I gzip
ɤʤ뤳Ȥ롣