unzip
TLDR
Extract files to current directory
SYNOPSIS
unzip [options] file[.zip] [file(s)] [-x xfile(s)] [-d exdir]
DESCRIPTION
unzip extracts files from ZIP archives. It handles archives created by zip, WinZip, PKZIP, and other ZIP-compatible programs. The tool supports various compression methods and can handle encrypted archives.
By default, unzip extracts all files to the current directory, preserving the directory structure stored in the archive. Individual files or patterns can be specified for selective extraction.
unzip is part of the InfoZip project and is the standard ZIP extraction tool on Unix-like systems.
PARAMETERS
-l
List archive contents.-v
Verbose listing with compression info.-t
Test archive integrity.-d dir
Extract to specified directory.-o
Overwrite existing files without prompt.-n
Never overwrite existing files.-q
Quiet mode.-qq
Very quiet mode.-j
Junk paths (don't make directories).-p
Extract to stdout (pipe).-P password
Use password for encrypted files.-x files
Exclude specified files.-C
Case-insensitive matching.-a
Convert text file line endings.
CAVEATS
Password on command line is insecure (visible in process list). Large archives with many files may be slow to extract. Some ZIP features (ZIP64, certain compression methods) require recent versions. Symlinks in archives may pose security risks.
HISTORY
unzip is part of Info-ZIP, a project started in 1989 to provide free ZIP utilities. The tools were created by Mark Adler, Jean-loup Gailly, Greg Roelofs, and others to provide open-source alternatives to PKWARE's PKZIP. Info-ZIP utilities became the standard ZIP tools on Unix systems.
