# man > funzip(1)

---
type: CommandReference
command: funzip
mode: man
section: 1
source: man-pages
---

## Quick Reference

- `funzip {{path/to/archive.zip}}` — Print the content of the first member in a Zip archive
- `funzip {{path/to/archive.gz}}` — Print the content in a gzip archive
- `funzip -password {{password}} {{path/to/archive}}` — Decrypt a Zip or gzip archive and print the content

## Name

funzip — filter for extracting from a ZIP archive in a pipe

## Synopsis

`funzip` [`-password`] [`input.zip|.gz`]

## Description

Without a file argument, `funzip` acts as a filter: it reads a ZIP or gzip archive from stdin and extracts the first member to stdout. If stdin comes from a tty device, `funzip` shows a short help text. If a file argument is given, input is read from that file instead of stdin.

For encrypted zip files, the password can be specified on the command line by prefixing the password with a dash (e.g., `-password`). This is a security risk on many systems. If the first entry is encrypted and no password is given, the user is prompted for a password (not echoed).

`funzip` is most useful in conjunction with a secondary archiver such as `tar`. See EXAMPLES.

## Options

- `-password` — Optional password for encrypted ZIP archive. Must precede the file name if given. Decryption may not be supported at some sites.

## Examples

Extract the first member of test.zip and pipe to more:

shell
funzip test.zip | more
Test the first member (errors to stderr):

shell
funzip test.zip > /dev/null
Use zip and funzip in place of compress and zcat for tape backups:

shell
tar cf - . | zip -7 | dd of=/dev/nrst0 obs=8k
dd if=/dev/nrst0 ibs=8k | funzip | tar xf -
## See Also

[gzip(1)](http://localhost/phpMan.php/man/gzip/1/markdown), [unzip(1)](http://localhost/phpMan.php/man/unzip/1/markdown), [unzipsfx(1)](http://localhost/phpMan.php/man/unzipsfx/1/markdown), [zip(1)](http://localhost/phpMan.php/man/zip/1/markdown), [zipcloak(1)](http://localhost/phpMan.php/man/zipcloak/1/markdown), [zipinfo(1)](http://localhost/phpMan.php/man/zipinfo/1/markdown), [zipnote(1)](http://localhost/phpMan.php/man/zipnote/1/markdown), [zipsplit(1)](http://localhost/phpMan.php/man/zipsplit/1/markdown)

Info-ZIP home page: <http://www.info-zip.org/pub/infozip/>

## Bugs

- When piping an encrypted file into `more` and allowing `funzip` to prompt for password, the terminal may be reset to non-echo mode due to a race condition. To recover, run `funzip` on the same file redirecting to /dev/null.
- There is no way to extract any member but the first from a ZIP archive. This would be useful when a ZIP archive is included within another archive.
- If the first member is a directory, `funzip` simply creates the directory and exits.
- The functionality of `funzip` should be incorporated into `unzip` itself.