Linux "unzip" Command Line Options and Examples
list, test and extract compressed files in a ZIP archive

unzip will list, test, or extract files from a ZIP archive, commonly found on MS-DOS systems. The default behavior (with no options) is to extract into the current directory (and subdirectories below it) all files from the specified ZIP archive.


Usage:

unzip [-Z] [-cflptTuvz[abjnoqsCDKLMUVWX$/:^]] file[.zip] [file(s) ...] [-x xfile(s) ...] [-d exdir]






Command Line Options:

-A
Unix DLL] print extended help for the DLL's programming interface (API).
unzip -A ...
-b
[general] treat all files as binary (no text conversions). This is a shortcut for ---a.
unzip -b ...
-E
[MacOS only] display contents of MacOS extra field during restore operation.
unzip -E ...
-F
[Acorn only] suppress removal of NFS filetype extension from stored filenames.
unzip -F ...
-P
use password to decrypt encrypted zipfile entries (if any). THIS IS INSECURE! Many multi-user operat‐ing systems provide ways for any user to see the current command line of any other user; even on stand-alone systems there is always the threat of over-the-shoulder peeking. Storing the plaintext passwordas part of a command line in an automated script is even worse. Whenever possible, use the non-echo‐ing, interactive prompt to enter passwords. (And where security is truly important, use strong encryp‐tion such as Pretty Good Privacy instead of the relatively weak encryption provided by standard zipfileutilities.)
unzip -P ...
-U
[UNICODE_SUPPORT only] modify or disable UTF-8 handling. When UNICODE_SUPPORT is available, the option
unzip -U ...
-/
[Acorn only] overrides the extension list supplied by Unzip$Ext environment variable. During extrac‐tion, filename extensions that match one of the items in this extension list are swapped in front ofthe base name of the extracted file.
unzip -/ ...