Name
unzip
Synopsis
unzip [-v] unzip -Z [-v] [-M] [-s | -m | -l | -1] [-T]archive_filename[pathname...] [-xpathname...] unzip -Z [-v] [-M] [-2] [-h] [-t] [-z]archive_filename[pathname...] [-xpathname...] unzip [-q[q] | -v] [-M] [-l | -t | -z | -p | -c [-a[a]]] [-b] [-C]archive_filename[pathname...] [-xpathname...] unzip [-q[q] | -v] [-M] [-f | -u] [-a[a] | -b] [-C] [-L] [-j] [-V] [-X] [-n | -o] [-ddirectory]archive_filename[pathname...] [-xpathname...]
Lists or extracts files from a ZIP archive (such as one created by
the zip command). If the name of the archive file
ends in .zip, that extension need not be
specified in archive_filename. If
pathname arguments are given, only archive
items matching those arguments are processed; otherwise,
unzip lists or extracts all items in the archive.
When called with no arguments, it prints a usage statement to
standard output.
Options
-
-a Convert text files in the archive to native format. For instance, it translates DOS linefeeds to Unix linefeeds on Mac OS X. When doubled (
-aa), it attempts to convert all files, whether text or binary.-
-b Treat all files as binary, so that no text conversions are attempted.
-
-c Extract file data to standard output.
-
-C Use case-insensitive matching of
pathnamearguments to archive items.-
-d Extract files into the given directory. Otherwise, files are extracted into the current working directory.
-
-f Extract files only if they already exist, and if the modification timestamps in the archive are more recent ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access