2014-01-28 12:08:30 +00:00
|
|
|
# unzip
|
|
|
|
|
2022-12-30 22:51:52 +00:00
|
|
|
> Extract files/directories from ZIP archives.
|
|
|
|
> See also: `zip`.
|
2021-10-19 21:11:22 +01:00
|
|
|
> More information: <https://manned.org/unzip>.
|
2014-01-28 12:08:30 +00:00
|
|
|
|
2022-12-30 22:51:52 +00:00
|
|
|
- Extract all files/directories from specific archives into the current directory:
|
2014-01-28 12:08:30 +00:00
|
|
|
|
2022-12-30 22:51:52 +00:00
|
|
|
`unzip {{path/to/archive1.zip path/to/archive2.zip ...}}`
|
2014-01-28 12:08:30 +00:00
|
|
|
|
2022-12-30 22:51:52 +00:00
|
|
|
- Extract files/directories from archives to a specific path:
|
2014-01-28 12:08:30 +00:00
|
|
|
|
2022-12-30 22:51:52 +00:00
|
|
|
`unzip {{path/to/archive1.zip path/to/archive2.zip ...}} -d {{path/to/output}}`
|
A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler
Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-10 20:36:05 +00:00
|
|
|
|
2022-12-30 22:51:52 +00:00
|
|
|
- Extract files/directories from archives to `stdout`:
|
A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler
Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-10 20:36:05 +00:00
|
|
|
|
2022-12-30 22:51:52 +00:00
|
|
|
`unzip -c {{path/to/archive1.zip path/to/archive2.zip ...}}`
|
2017-12-05 17:53:15 +00:00
|
|
|
|
2022-12-04 07:53:34 +00:00
|
|
|
- Extract the contents of the file(s) to `stdout` alongside the extracted file names:
|
2017-12-05 17:53:15 +00:00
|
|
|
|
2022-12-30 22:51:52 +00:00
|
|
|
`unzip -O {{gbk}} {{path/to/archive1.zip path/to/archive2.zip ...}}`
|
2018-05-07 10:11:58 +01:00
|
|
|
|
2022-12-30 22:51:52 +00:00
|
|
|
- List the contents of a specific archive without extracting them:
|
2018-05-07 10:11:58 +01:00
|
|
|
|
2022-12-30 22:51:52 +00:00
|
|
|
`unzip -l {{path/to/archive.zip}}`
|