2025-03-14 21:59:59 -06:00
|
|
|
# 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` alongside the extracted file names:
|
|
|
|
|
|
|
|
|
|
`unzip -c {{path/to/archive1.zip path/to/archive2.zip ...}}`
|
|
|
|
|
|
|
|
|
|
- Extract an archive created on Windows, containing files with non-ASCII (e.g. Chinese or Japanese characters) filenames:
|
|
|
|
|
|
|
|
|
|
`unzip -O {{gbk}} {{path/to/archive1.zip path/to/archive2.zip ...}}`
|
|
|
|
|
|
|
|
|
|
- List the contents of a specific archive without extracting them:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`unzip -l {{path/to/archive}}.zip`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Extract specific files from an archive:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`unzip -j {{path/to/archive}}.zip {{path/to/file1_in_archive path/to/file2_in_archive ...}}`
|