mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-10 22:15:46 +02:00

* Refresh unzip page: - more general descrptions - more general examples * Mention `zip` command * Don't use brace expansion * Update pages/common/unzip.md * Use `list` term in the last example * Apply suggestions from code review * Fix command description * Apply suggestions from code review
25 lines
789 B
Markdown
25 lines
789 B
Markdown
# unzip
|
|
|
|
> Extract files/directories from ZIP archives.
|
|
> See also: `zip`.
|
|
> More information: <https://manned.org/unzip>.
|
|
|
|
- Extract all files/directories from specific archives into the current directory:
|
|
|
|
`unzip {{path/to/archive1.zip path/to/archive2.zip ...}}`
|
|
|
|
- Extract files/directories from archives to a specific path:
|
|
|
|
`unzip {{path/to/archive1.zip path/to/archive2.zip ...}} -d {{path/to/output}}`
|
|
|
|
- Extract files/directories from archives to `stdout`:
|
|
|
|
`unzip -c {{path/to/archive1.zip path/to/archive2.zip ...}}`
|
|
|
|
- Extract the contents of the file(s) to `stdout` alongside the extracted file names:
|
|
|
|
`unzip -O {{gbk}} {{path/to/archive1.zip path/to/archive2.zip ...}}`
|
|
|
|
- List the contents of a specific archive without extracting them:
|
|
|
|
`unzip -l {{path/to/archive.zip}}`
|