?? funzip.1
字號:
.\" Copyright (c) 1990-2002 Info-ZIP. All rights reserved..\".\" See the accompanying file LICENSE, version 2000-Apr-09 or later.\" (the contents of which are also included in unzip.h) for terms of use..\" If, for some reason, all these files are missing, the Info-ZIP license.\" also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html.\".\" funzip.1 by Greg Roelofs and others..\".\" =========================================================================.\" define .EX/.EE (for multiline user-command examples; normal Courier font).de EX.in +4n.nf.ft CW...de EE.ft R.fi.in -4n...\" =========================================================================.TH FUNZIP 1L "17 February 2002 (v3.94)" "Info-ZIP".SH NAMEfunzip \- filter for extracting from a ZIP archive in a pipe.PD.SH SYNOPSIS\fBfunzip\fP [\fB\-password\fP] [\fIinput[.zip|.gz]\fP].\" =========================================================================.SH ARGUMENTS.IP [\fI\-password\fP]Optional password to be used if ZIP archive is encrypted. Decryptionmay not be supported at some sites. See DESCRIPTION for more details..IP [\fIinput[.zip|.gz]\fP]Optional input archive file specification. See DESCRIPTION for details..PD.\" =========================================================================.SH DESCRIPTION.I funzipwithout a file argument acts as a filter; that is, it assumes that aZIP archive (or a \fIgzip\fP'd(1) file) is being piped intostandard input, and it extracts the first member from the archive to stdout.When stdin comes from a tty device,.I funzipassumes that this cannot be a stream of (binary) compressed data andshows a short help text, instead.If there is a file argument, then input is read from the specified fileinstead of from stdin..PPA password for encrypted zip files can be specifiedon the command line (preceding the file name, if any) by prefixing thepassword with a dash. Note that this constitutes a security risk on manysystems; currently running processes are often visible via simple commands(e.g., \fIps\fP(1) under Unix), and command-line histories can be read.If the first entry of the zip file is encrypted andno password is specified on the command line, then the user is prompted fora password and the password is not echoed on the console..PPGiven the limitation on single-member extraction, \fIfunzip\fP is mostuseful in conjunction with a secondary archiver program such as \fItar\fP(1).The following section includes an example illustrating this usage in thecase of disk backups to tape..PD.\" =========================================================================.SH EXAMPLESTo use \fIfunzip\fP to extract the first member file of the archive test.zipand to pipe it into \fImore\fP(1):.PP.EXfunzip test.zip | more.EE.PPTo use \fIfunzip\fP to test the first member file of test.zip (any errorswill be reported on standard error):.PP.EXfunzip test.zip > /dev/null.EE.PPTo use \fIzip\fP and \fIfunzip\fP in place of \fIcompress\fP(1) and\fIzcat\fP(1) (or \fIgzip\fP(1L) and \fIgzcat\fP(1L)) for tape backups:.PP.EXtar cf \- . | zip \-7 | dd of=/dev/nrst0 obs=8kdd if=/dev/nrst0 ibs=8k | funzip | tar xf \-.EE.PP(where, for example, nrst0 is a SCSI tape drive)..PD.\" =========================================================================.SH BUGSWhen piping an encrypted file into \fImore\fP and allowing \fIfunzip\fPto prompt for password, the terminal may sometimes be reset to a non-echomode. This is apparently due to a race condition between the two programs;\fIfunzip\fP changes the terminal mode to non-echo before \fImore\fP readsits state, and \fImore\fP then ``restores'' the terminal to this mode beforeexiting. To recover, run \fIfunzip\fP on the same file but redirect to/dev/null rather than piping into more; after prompting again for thepassword, \fIfunzip\fP will reset the terminal properly..PPThere is presently no way to extract any member but the first from a ZIParchive. This would be useful in the case where a ZIP archive is includedwithin another archive. In the case where the first member is a directory,\fIfunzip\fP simply creates the directory and exits..PPThe functionality of \fIfunzip\fP should be incorporated into \fIunzip\fPitself (future release)..PD.\" =========================================================================.SH "SEE ALSO"\fIgzip\fP(1L), \fIunzip\fP(1L), \fIunzipsfx\fP(1L), \fIzip\fP(1L),\fIzipcloak\fP(1L), \fIzipinfo\fP(1L), \fIzipnote\fP(1L), \fIzipsplit\fP(1L).PD.\" =========================================================================.SH URLThe Info-ZIP home page is currently at.EX\fChttp://www.info-zip.org/pub/infozip/\fR.EEor.EX\fCftp://ftp.info-zip.org/pub/infozip/\fR ..EE.PD.\" =========================================================================.SH AUTHORMark Adler (Info-ZIP)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -