2014-01-28 20:08:30 +08:00
|
|
|
# unzip
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Extract compressed files in a ZIP archive.
|
2014-01-28 20:08:30 +08:00
|
|
|
|
2017-05-12 11:29:18 +02:00
|
|
|
- Extract zip file(s) (for multiple files, separate file paths by spaces):
|
2014-01-28 20:08:30 +08:00
|
|
|
|
|
|
|
`unzip {{file(s)}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Extract zip files(s) to given path:
|
2014-01-28 20:08:30 +08:00
|
|
|
|
2020-10-28 18:19:43 +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 12:36:05 -08:00
|
|
|
|
2016-01-07 18:31:27 +01: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 12:36:05 -08:00
|
|
|
|
2017-12-05 19:53:15 +02:00
|
|
|
`unzip -l {{file.zip}}`
|
|
|
|
|
2021-01-31 14:05:18 -03:00
|
|
|
- Extract the contents of the file(s) to stdout alongside the extracted file names:
|
2017-12-05 19:53:15 +02:00
|
|
|
|
|
|
|
`unzip -c {{file.zip}}`
|
2018-05-07 17:11:58 +08:00
|
|
|
|
2018-05-09 12:11:33 +05:30
|
|
|
- Extract a zip file created in windows, containing files with non-ascii (chinese) filenames:
|
2018-05-07 17:11:58 +08:00
|
|
|
|
2018-05-09 12:11:33 +05:30
|
|
|
`unzip -O {{gbk}} {{file.zip}}`
|