summaryrefslogtreecommitdiff
path: root/Base/usr/share/man/man1/unzip.md
blob: 178283231fa55a90aeee38bba97af2029ba82034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## Name

unzip - extract files from a ZIP archive

## Synopsis

```**sh
$ unzip file.zip [files...]
```

## Description

unzip will extract files from a zip archive to the current directory.

The program is compatible with the PKZIP file format specification.

The optional [files] argument can be used to only extract specific files within the archive (using wildcards) during the unzip process. A `_` can be used as a single-character wildcard, and  `*` can be used as a variable-length wildcard.

## Examples

```sh
# Unzip the contents from archive.zip
$ unzip archive.zip
Archive: archive.zip
 extracting: file1.txt
 extracting: file2.png
```

```sh
# Unzip select files from archive.zip, according to a filter
$ unzip archive.zip "*.tx_"
Archive: archive.unzip
 extracting: file1.txt
```