Scroll to navigation

7z(1) General Commands Manual 7z(1)

NAME

7z - 7-Zip file archiver with a high compression ratio

SYNOPSIS

7z command [switches...] archive_name [file_names] [@listfile]
7zz command [switches...] archive_name [file_names] [@listfile]
7za command [switches...] archive_name [file_names] [@listfile]
7zr command [switches...] archive_name [file_names] [@listfile]

DESCRIPTION

7-Zip file archiver with a high compression ratio
There are some variants for 7z executable.

7z
Full featured with plugin support
7zz
Full featured single binary executable with no plugins support
7za
Supports major formats only, no plugins, but smaller excutable size
7zr
Only supports LZMA codec and related formats (7z, lzma, xz), no plugins, but smallest executable size

OPTIONS

Commands

Add files to archive
Benchmark
Delete files from archive
Extract files from archive (without using directory names)
Calculate hash values for files
Show information about supported formats
List contents of archive
Rename files in archive
Test integrity of archive
Update files to archive
eXtract files with full paths

Switches

--
Stop switches and @listfile parsing
Include archives
eXclude archives
set Overwrite mode
disable archive_name field
set output log level
disable progress indicator
set output stream for output/error/progress line
show execution time statistics
Include filenames
set compression Method
set number of CPU threads
set compression level: -mx1 (fastest) ... -mx9 (ultra)
set Output directory
set Password
Recurse subdirectories for name search
set Archive name mode
set charset for for console input/output
set charset for list files
set hash function for x, e, h commands
delete files after compression
send archive by email
Create SFX archive
read data from stdin
set Large Pages mode
show technical information for l (List) command
store hard links as links
store symbolic links as links
store NT security information
store NTFS alternate streams
write data to stdout
disable wildcard matching for file names
eliminate duplication of root folder for extract command
use fully qualified file paths
set sensitive case mode
stop archive creating, if it can't open some input file
do not change Last Access Time of source files while archiving
compress shared files
set archive timestamp from the most recently modified file
set CPU thread affinity mask (hexadecimal number)
exclude archive type
Set type of archive
Update options
Create volumes
assign Work directory. Empty path means a temporary directory
eXclude filenames
assume Yes on all queries

SEE ALSO

7-Zip https://www.7-zip.org/

COPYRIGHT

Copyright © 1999-2023 Igor Pavlov.
Distributed under the LGPL-2.1+ license.

May 2023 22.01