unzip [-Z] [-cflptTuvz[abjnoqsCKLM$/:]] file[.zip] [file(s) ...] [-x xfile(s) ...] [-d exdir]List, test and extract compressed files in a ZIP archive.
file(s) Work only with the files specified by file(s) in the zip file. -Z Zipinfo mode. For help, type UNZIP -Z -c Unzip to stdout, printing the name of each file as it is extracted. -f Extract only files that already exist on the disk and are newer. -l List archive files (short format). -p Extract files to stdout, print nothing else. -t Test archive files -T Set the timestamp on the archive to that of the newest file in the zip. -u Update existing files and create new ones if necessary. -v Be verbose or print diagnostic version information. -z Display only the archive comment. -a Convert line endings of text files in the zip archive. -b Treat all files as binary. -j Junk paths; do not re-create directory structure on the disk. -n Never overwrite existing files. -o Always overwrite existing files. -q[q] Perform quietly. -qq specifies to perform even quieter. -s Convert spaces in filenames to underscores. -C Use case-insensitive matching for filenames within the archive. -M Pipe all output through an internal more-like pager. -L Convert to lowercase all filenames created on an uppercase-only filesystem/operating system. -$[$] Set the volume label from the zip archive if medium is removeable. -$$ allows to set the volume label on non-removeable media. -: Allow extraction of '..' path components (older archives). -x file(s)... Exclude the files specified by file(s) from the unzip operation. -d exdir Extract the files into the directory specified by exdir.
In DOS, filenames not conforming to the 8.3 specification are converted to short filenames for extraction unless both an LFN driver is loaded and unzip32.exe is used (compiled with DJGPP).
The UNZIP environment variable can also be used to specify options.