summaryrefslogtreecommitdiffstats
path: root/src/libs/7zip/unix/DOCS/MANUAL/commands/extract.htm
blob: dad6b2b0b4d1cc697b4e54594b94dea507a87959 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
  <META http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  <TITLE>e (Extract) command</TITLE>
  <LINK href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY>

<H1>e (Extract) command</H1>

<P>Extracts files from an archive to the current
directory or to the output directory. The output directory can be specified by
<A href="../switches/output_dir.htm">-o (Set Output Directory)</A> switch.</P>

<P>This command copies all extracted files to one directory.
If you want extract files with full paths, you must use
<A href="extract_full.htm">x (Extract with full paths)</A> command.

<P>7-Zip will prompt the user before overwriting existing files unless
the user specifies the <A href="../switches/yes.htm">-y (Assume Yes on all queries)</A>
switch. If the user gives a <B>no</B> answer, 7-Zip will prompt for the file to be
extracted to a new filename. Then a <B>no</B> answer skips that file; or, <B>yes</B>
prompts for new filename.</P>

<P>7-Zip accepts the following responses:</P>

<TABLE>
  <TR> <TH>Answer</TH> <TH>Abbr.</TH> <TH>Action</TH> </TR>
  <TR> <TD>Yes</TD> <TD>y</TD> <TD>&nbsp;</TD> </TR>
  <TR> <TD>No</TD> <TD>n</TD> <TD>&nbsp;</TD> </TR>
  <TR> <TD>Always</TD> <TD>a</TD> <TD>Assume YES for ALL subsequent queries of the same class</TD> </TR>
  <TR> <TD>Skip</TD> <TD>s</TD> <TD>Assume NO for ALL subsequent queries of the same class</TD> </TR>
  <TR> <TD>Quit</TD> <TD>q</TD> <TD>Quit the program</TD> </TR>

</TABLE>

<P>Abbreviated responses are allowed.</P>

<H4>Examples</H4>

<PRE class="example">
7z e archive.zip
</PRE>

<P>extracts all files from archive
    <SPAN class="filename">archive.zip</SPAN> to the current directory.</P>

<PRE class="example">
7z e archive.zip -oc:\soft *.cpp -r
</PRE>

<P>extracts all <SPAN class="filename">*.cpp</SPAN> files from archive
    <SPAN class="filename">archive.zip</SPAN> to <SPAN class="filename">c:\soft</SPAN> folder.</P>


<H4>Notes</H4>

<P>7-Zip doesn't uses the system wildcard parser. 7-Zip doesn't
follow the archaic rule by which *.* means any file. 7-Zip treats
*.* as matching the name of any file that has an extension. To process 
all files, you must use a * wildcard.</P>


<H4>Switches that can be used with this command</H4>

<P>
  <A href="../switches/ar_include.htm">-ai (Include archives)</A><BR>
  <A href="../switches/ar_no.htm">-an (Disable parsing of archive_name)</A><BR>
  <A href="../switches/overwrite.htm">-ao (Overwrite mode)</A><BR>
  <A href="../switches/ar_exclude.htm">-ax (Exclude archives)</A><BR>
  <A href="../switches/include.htm">-i (Include)</A><BR>
  <A href="../switches/output_dir.htm">-o (Set Output Directory)</A><BR>
  <A href="../switches/password.htm">-p (Set Password)</A><BR>
  <A href="../switches/recurse.htm">-r (Recurse)</A><BR>
  <A href="../switches/stdout.htm">-so (use StdOut)</A><BR>
  <A href="../switches/type.htm">-t (Type of archive)</A><BR>
  <A href="../switches/exclude.htm">-x (Exclude)</A><BR>
  <A href="../switches/yes.htm">-y (Assume Yes on all queries)</A>
</P>

<H4>See also</H4>

<P>
  <B>Commands:</B> 
  <A href="extract_full.htm">x (Extract with full paths)</A>
</P>

</BODY>
</HTML>