2014-01-28 12:08:30 +00:00
|
|
|
# unzip
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Extract compressed files in a ZIP archive.
|
2021-10-19 21:11:22 +01:00
|
|
|
> More information: <https://manned.org/unzip>.
|
2014-01-28 12:08:30 +00:00
|
|
|
|
2017-05-12 10:29:18 +01:00
|
|
|
- Extract zip file(s) (for multiple files, separate file paths by spaces):
|
2014-01-28 12:08:30 +00:00
|
|
|
|
|
|
|
`unzip {{file(s)}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Extract zip files(s) to given path:
|
2014-01-28 12:08:30 +00:00
|
|
|
|
2020-10-28 17:19:43 +00:00
|
|
|
`unzip {{compressed_file(s)}} -d {{path/to/put/extracted_file(s)}}`
|
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
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List the contents of a zip file without extracting:
|
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
|
|
|
|
2017-12-05 17:53:15 +00:00
|
|
|
`unzip -l {{file.zip}}`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Extract the contents of the file(s) to stdout alongside the extracted file names:
|
2017-12-05 17:53:15 +00:00
|
|
|
|
|
|
|
`unzip -c {{file.zip}}`
|
2018-05-07 10:11:58 +01:00
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
- Extract a zip file created on Windows, containing files with non-ASCII (e.g. Chinese or Japanese characters) filenames:
|
2018-05-07 10:11:58 +01:00
|
|
|
|
2018-05-09 07:41:33 +01:00
|
|
|
`unzip -O {{gbk}} {{file.zip}}`
|