unzip: refresh page (#7997)

* 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
pull/3/head
Emily Grace Seville 2022-12-31 08:51:52 +10:00 committed by GitHub
parent 65def218b7
commit dbda0fc755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 10 deletions

View File

@ -1,24 +1,25 @@
# unzip
> Extract compressed files in a ZIP archive.
> Extract files/directories from ZIP archives.
> See also: `zip`.
> More information: <https://manned.org/unzip>.
- Extract zip file(s) (for multiple files, separate file paths by spaces):
- Extract all files/directories from specific archives into the current directory:
`unzip {{file(s)}}`
`unzip {{path/to/archive1.zip path/to/archive2.zip ...}}`
- Extract zip files(s) to given path:
- Extract files/directories from archives to a specific path:
`unzip {{compressed_file(s)}} -d {{path/to/put/extracted_file(s)}}`
`unzip {{path/to/archive1.zip path/to/archive2.zip ...}} -d {{path/to/output}}`
- List the contents of a zip file without extracting:
- Extract files/directories from archives to `stdout`:
`unzip -l {{file.zip}}`
`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 -c {{file.zip}}`
`unzip -O {{gbk}} {{path/to/archive1.zip path/to/archive2.zip ...}}`
- Extract a zip file created on Windows, containing files with non-ASCII (e.g. Chinese or Japanese characters) filenames:
- List the contents of a specific archive without extracting them:
`unzip -O {{gbk}} {{file.zip}}`
`unzip -l {{path/to/archive.zip}}`