2014-01-28 12:08:30 +00:00
|
|
|
# unzip
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Extract compressed files in a ZIP archive.
|
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
|
|
|
|
2016-07-22 21:24:06 +01: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}}`
|
|
|
|
|
2019-06-17 16:00:38 +01: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
|
|
|
|
2018-05-09 07:41:33 +01:00
|
|
|
- Extract a zip file created in windows, containing files with non-ascii (chinese) filenames:
|
2018-05-07 10:11:58 +01:00
|
|
|
|
2018-05-09 07:41:33 +01:00
|
|
|
`unzip -O {{gbk}} {{file.zip}}`
|