1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/unzip.md

25 lines
653 B
Markdown
Raw Normal View History

# unzip
> Extract compressed files in a ZIP archive.
> More information: <https://manned.org/unzip>.
2017-05-12 11:29:18 +02:00
- Extract zip file(s) (for multiple files, separate file paths by spaces):
`unzip {{file(s)}}`
- Extract zip files(s) to given path:
`unzip {{compressed_file(s)}} -d {{path/to/put/extracted_file(s)}}`
- List the contents of a zip file without extracting:
`unzip -l {{file.zip}}`
- Extract the contents of the file(s) to stdout alongside the extracted file names:
`unzip -c {{file.zip}}`
2018-05-07 17:11:58 +08:00
- Extract a zip file created on Windows, containing files with non-ASCII (e.g. Chinese or Japanese characters) filenames:
2018-05-07 17:11:58 +08:00
2018-05-09 12:11:33 +05:30
`unzip -O {{gbk}} {{file.zip}}`