← 返回命令列表

Linux command

funzip 命令

网络

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Extract first file from a ZIP archive via stdin

cat [file.zip] | funzip > [output]

Extract from a gzip file via stdin

cat [file.gz] | funzip > [output]

Download and extract in one step

curl -s [url/file.zip] | funzip > [output]

Extract from a file argument directly

funzip [file.zip] > [output]

Extract a password-protected ZIP archive

funzip -[password] [file.zip] > [output]

Extract a tar.zip archive using a secondary archiver

cat [archive.tar.zip] | funzip | tar xf -

说明

funzip acts as a filter to extract the first member from a ZIP archive or a gzip file. Without a file argument, it reads from standard input and writes to standard output. When given a file argument, it reads from that file instead. It also handles gzip compressed files. This is most useful for extracting single-file archives from pipes without creating intermediate files, or in combination with a secondary archiver like tar(1) for tape backups.

参数

-_password_
Decryption password for encrypted ZIP archives. Passing passwords on the command line is insecure as they may be visible via ps(1).

FAQ

What is the funzip command used for?

funzip acts as a filter to extract the first member from a ZIP archive or a gzip file. Without a file argument, it reads from standard input and writes to standard output. When given a file argument, it reads from that file instead. It also handles gzip compressed files. This is most useful for extracting single-file archives from pipes without creating intermediate files, or in combination with a secondary archiver like tar(1) for tape backups.

How do I run a basic funzip example?

Run `cat [file.zip] | funzip > [output]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -_password_ do in funzip?

Decryption password for encrypted ZIP archives. Passing passwords on the command line is insecure as they may be visible via ps(1).