LinuxCommandLibrary

funzip

Extract compressed files with the .zip suffix

TLDR

Print the content of the first member in a Zip archive

$ funzip [path/to/archive.zip]
copy

Print the content in a gzip archive
$ funzip [path/to/archive.gz]
copy

Decrypt a Zip or gzip archive and print the content
$ funzip -password [password] [path/to/archive]
copy

SYNOPSIS

funzip [-lvto] archive.zip [file1 file2 ...]

PARAMETERS

-l
    List the contents of the ZIP archive.

-v
    Be verbose; display extra information.

-t
    Test the integrity of the ZIP archive.

-o
    Overwrite existing files during extraction.

archive.zip
    The name of the ZIP archive file.

[file1 file2 ...]
    Optional: Specify the files to extract or list. If omitted, all files in the archive are processed.

DESCRIPTION

The funzip command is used to list, test, or extract files from a ZIP archive.

It's a lightweight alternative to unzip, often prioritized for its simplicity and speed, particularly when needing to inspect a ZIP archive without the overhead of more feature-rich tools.

Unlike unzip, funzip is designed for basic operations and may not support all advanced ZIP features such as encryption or complex compression methods. It focuses on core functionalities: displaying the archive content, verifying its integrity, and extracting files.

This command is commonly found in minimal Linux distributions or embedded systems where resources are constrained. Its streamlined design makes it ideal for situations where a quick and efficient ZIP handling solution is required.

CAVEATS

funzip might not support all ZIP archive features, such as encryption or advanced compression methods. It is primarily designed for basic extraction and listing.

EXIT STATUS

funzip returns 0 on success, and non-zero on failure. Error messages are usually printed to standard error.

HISTORY

funzip is one of many programs that can manipulate zip files. The development history is intertwined with evolution of general purpose data compression utilities, which were in high demand in the early days of computing where storage space was expensive. funzip aimed to be a simpler and faster tool than comprehensive unzip.

SEE ALSO

unzip(1), zip(1), gzip(1)

Copied to clipboard