BSDUNZIP(1) | General Commands Manual | BSDUNZIP(1) |
bsdunzip
— extract
files from a ZIP archive
bsdunzip |
[-aCcfjLlnopqtuvy ] [{ -O
| -I }
encoding] [-d
dir] [-x
pattern] [-P
password] zipfile
[member ...] |
The following options are available:
-a
-C
-c
-p
, but does
not suppress normal output.-d
dir-f
-I
encoding-O
encoding-j
-L
-l
-n
-o
-p
-q
was specified.-P
password-q
-t
-u
-v
-l
by using the long listing. Note
that most of the data is currently fake and does not reflect the content
of the archive.-x
pattern-y
-Z
modeNote that only one of -n
,
-o
, and -u
may be specified.
If specified filename is "-", then data is read from
stdin.
If the UNZIP_DEBUG
environment variable is
defined, the -q
command-line option has no effect,
and additional debugging information will be printed to
stderr.
The bsdunzip
utility aims to be
sufficiently compatible with other implementations to serve as a drop-in
replacement in the context of the ports(7) 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.
Normally, the -a
option should only affect
files which are marked as text files in the zipfile's central directory.
Since the archive(3) library does not provide access to
that information, it is not available to the
bsdunzip
utility. Instead, the
bsdunzip
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.
The bsdunzip
utility is only able to
process ZIP archives handled by libarchive(3). Depending
on the installed version of libarchive(3), this may or may
not include self-extracting or ZIPX archives.
The bsdunzip
utility appeared in
FreeBSD 8.0.
The bsdunzip
utility and this manual page
were written by Dag-Erling Smørgrav
<des@FreeBSD.org>. It
uses the archive(3) library developed by
Tim Kientzle
<kientzle@FreeBSD.org>.
The bsdunzip
utility performs two scans of
the command-line for arguments before and after the archive name, so as to
maintain compatibility with Info-ZIP unzip. As a result, the POSIX
‘--
’ double-dash string used to
separate options from arguments will need to be repeated. For example, to
extract a "-a.jpg" from "-b.zip" with overwrite, one
would need to invoke
bsdunzip -o -- -a.jpg --
-b.zip
June 27, 2023 | Debian |