extract files from a ZIP archive
The following options are available:
- When extracting a text file, convert DOS-style line endings to Unix-style
- Match file names case-insensitively.
- Extract to stdout/screen. When extracting files from the zipfile, they are
written to stdout. This is similar to
-p, but does not suppress normal
- Extract files into the specified directory rather than the current
- Update existing. Extract only files from the zipfile if a file with the
same name already exists on disk and is older than the former. Otherwise,
the file is silently skipped.
- Ignore directories stored in the zipfile; instead, extract all files
directly into the extraction directory.
- Convert the names of the extracted files and directories to
- List, rather than extract, the contents of the zipfile.
- No overwrite. When extracting a file from the zipfile, if a file with the
same name already exists on disk, the file is silently skipped.
- Overwrite. When extracting a file from the zipfile, if a file with the
same name already exists on disk, the existing file is replaced with the
file from the zipfile.
- Extract to stdout. When extracting files from the zipfile, they are
written to stdout. The normal output is suppressed as if
-q was specified.
- Quiet: print less information while extracting.
- Test: do not extract anything, but verify the checksum of every file in
- Update. When extracting a file from the zipfile, if a file with the same
name already exists on disk, the existing file is replaced with the file
from the zipfile if and only if the latter is newer than the former.
Otherwise, the file is silently skipped.
- List verbosely, rather than extract, the contents of the zipfile. This
-l by using the long
listing. Note that most of the data is currently fake and does not reflect
the content of the archive.
- Exclude files matching the pattern
- Print four digit years in listings instead of two.
mode changes the way in which additional arguments are parsed. Currently
mode 1 is supported, which lists the file names one per line.
Note that only one of
may be specified. If specified filename
is “-”, then data is read from
environment variable is
command-line option has no
effect, and additional debugging information will be printed to
utility aims to be sufficiently
compatible with other implementations to serve as a drop-in replacement in the
context of the
system. No attempt has been made to replicate functionality which is not
required for that purpose.
For compatibility reasons, command-line options will be recognized if they are
listed not only before but also after the name of the zipfile.
option should only affect
files which are marked as text files in the zipfile's central directory. Since
library does not provide access to that information, it is not available to
utility. Instead, the
utility will assume that a file is a
text file if no non-ASCII characters are present within the first block of
data decompressed for that file. If non-ASCII characters appear in subsequent
blocks of data, a warning will be issued.
utility is only able to process ZIP
archives handled by
Depending on the installed version of
this may or may not include self-extracting archives.
utility appeared in
utility and this manual page were
written by Dag-Erling Smørgrav
It uses the
library developed by