7ZIP manual & documentation

On this site:
7zC.txt
7zFormat.txt
License.txt
MANUAL/commands/add.htm
MANUAL/commands/bench.htm
MANUAL/commands/delete.htm
MANUAL/commands/extract.htm
MANUAL/commands/extract_full.htm
MANUAL/commands/index.htm
MANUAL/commands/list.htm
MANUAL/commands/style.css
MANUAL/commands/test.htm
MANUAL/commands/update.htm
MANUAL/exit_codes.htm
MANUAL/index.htm
MANUAL/style.css
MANUAL/switches/ar_exclude.htm
MANUAL/switches/ar_include.htm
MANUAL/switches/ar_no.htm
MANUAL/switches/charset.htm
MANUAL/switches/exclude.htm
MANUAL/switches/include.htm
MANUAL/switches/index.htm
MANUAL/switches/list_tech.htm
MANUAL/switches/method.htm
MANUAL/switches/output_dir.htm
MANUAL/switches/overwrite.htm
MANUAL/switches/password.htm
MANUAL/switches/recurse.htm
MANUAL/switches/sfx.htm
MANUAL/switches/ssc.htm
MANUAL/switches/stdin.htm
MANUAL/switches/stdout.htm
MANUAL/switches/stop_switch.htm
MANUAL/switches/style.css
MANUAL/switches/type.htm
MANUAL/switches/update.htm
MANUAL/switches/volume.htm
MANUAL/switches/working_dir.htm
MANUAL/switches/yes.htm
MANUAL/syntax.htm
Methods.txt
copying.txt
history.txt
lzma.txt
readme.txt
unRarLicense.txt

e (Extract) command

Extracts files from an archive to the current directory or to the output directory. The output directory can be specified by -o (Set Output Directory) switch.

This command copies all extracted files to one directory. If you want extract files with full paths, you must use x (Extract with full paths) command.

7-Zip will prompt the user before overwriting existing files unless the user specifies the -y (Assume Yes on all queries) switch. If the user gives a no answer, 7-Zip will prompt for the file to be extracted to a new filename. Then a no answer skips that file; or, yes prompts for new filename.

7-Zip accepts the following responses:

Answer Abbr. Action
Yes y  
No n  
Always a Assume YES for ALL subsequent queries of the same class
Skip s Assume NO for ALL subsequent queries of the same class
Quit q Quit the program

Abbreviated responses are allowed.

Examples

7z e archive.zip

extracts all files from archive archive.zip to the current directory.

7z e archive.zip -oc:\soft *.cpp -r

extracts all *.cpp files from archive archive.zip to c:\soft folder.

Switches that can be used with this command

-ai (Include archives)
-an (Disable parsing of archive_name)
-ao (Overwrite mode)
-ax (Exclude archives)
-i (Include)
-o (Set Output Directory)
-p (Set Password)
-r (Recurse)
-so (use StdOut)
-x (Exclude)
-y (Assume Yes on all queries)

See also

Commands: x (Extract with full paths)

Hosted by bugaco.com