Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
7ZZ(1)			    General Commands Manual			7ZZ(1)

NAME
       7zz - Standalone	console	version	of the 7-Zip file archiver

SYNOPSIS
       7zz <command> [<switch>...]  <archive_name> [<file_names>] [@listfile]

DESCRIPTION
       7-Zip  is a file	archiver with a	high compression ratio.	Supported for-
       mats:

	      Packing and unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM.

	      Unpacking	only: AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT,  FAT,
	      GPT,  HFS,  IHEX,	 ISO,  LZH, LZMA, MBR, MSI, NSIS, NTFS,	QCOW2,
	      RAR, RPM,	SquashFS, UDF, UEFI, VDI, VHD, VHDX,  VMDK,  WIM,  XAR
	      and Z.

Commands
       a      Add files	to archive

       b      Benchmark

       d      Delete files from	archive

       e      Extract files from archive (without using	directory names)

       h      Calculate	hash values for	files

       i      Show information about supported formats

       l      List contents of archive

       rn     Rename files in archive

       t      Test integrity of	archive

       u      Update files to archive

       x      Extract files with full paths

Switches
       --     Stop switches and	@listfile parsing

       -ai[r[-|0]]{@listfile|!wildcard}
	      Include archives

       -ax[r[-|0]]{@listfile|!wildcard}
	      Exclude archives

       -ao{a|s|t|u}
	      Set Overwrite mode

       -an    Disable archive_name field

       -bb[0-3]
	      Set output log level

       -bd    Disable progress indicator

       -bs{o|e|p}{0|1|2}
	      Set output stream	for output/error/progress line

       -bt    show execution time statistics

       -i[r[-|0]]{@listfile|!wildcard}
	      Include filenames

       -m{Parameters}
	      Set compression Method

       -mmt[N]
	      Set number of CPU	threads

       -mx[N] Set compression level: -mx1 (fastest) ...	-mx9 (ultra)

       -o{Directory}
	      Set Output directory

       -p{Password}
	      Set Password

       -r[-|0]
	      Recurse subdirectories for name search

       -sa{a|e|s}
	      Set Archive name mode

       -scc{UTF-8|WIN|DOS}
	      Set charset for for console input/output

       -scs{UTF-8|UTF-16LE|UTF-16BE|WIN|DOS|{id}}
	      Set charset for list files

       -scrc[CRC32|CRC64|SHA1|SHA256|*]
	      Set hash function	for x, e, h commands

       -sdel  Delete files after compression

       -seml[.]
	      Send archive by email

       -sfx[{name}]
	      Create SFX archive

       -si[{name}]
	      Read data	from stdin

       -slp   Set Large	Pages mode

       -slt   Show technical information for l (List) command

       -snh   Store hard links as links

       -snl   Store symbolic links as links

       -sni   Store NT security	information

       -sns[-]
	      Store NTFS alternate streams

       -so    Write data to stdout

       -spd   Disable wildcard matching	for file names

       -spe   Eliminate	duplication of root folder for extract command

       -spf   Use fully	qualified file paths

       -ssc[-]
	      Set sensitive case mode

       -sse   Stop archive creating, if	it can't open some input file

       -ssp   Do not change Last Access	Time of	source files while archiving

       -ssw   Compress shared files

       -stl   Set archive timestamp from the most recently modified file

       -stm{HexMask}
	      Set CPU thread affinity mask (hexadecimal	number)

       -stx{Type}
	      Exclude archive type

       -t{Type}
	      Set type of archive

       -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]
	      Update options

       -v{Size}[b|k|m|g]
	      Create volumes

       -w[{path}]
	      Set working directory. Empty path	means a	temporary directory

       -x[r[-|0]]{@listfile|!wildcard}
	      Exclude filenames

       -y     Assume Yes on all	queries

Listfile
       You  can	 supply	 one  or  more filenames or wildcards for special list
       files (files containing lists of	files).	The  filenames	in  such  list
       file  must  be  separated  by new line symbol(s). For list files, 7-Zip
       uses UTF-8 encoding by default. You  can	 change	 encoding  using  -scs
       switch. Multiple	list files are supported.

       For example, if the file	"listfile.txt" contains	the following:

	      My programs\*.cpp
	      Src\*.cpp

       then the	command

	      7z a -tzip archive.zip @listfile.txt

       adds  to	 the  archive "archive.zip" all	"*.cpp"	files from directories
       "My programs" and "Src".

SEE ALSO
       xz(1)
       Frequently Asked	Questions: <https://www.7-zip.org/faq.html>
       Recover corrupted 7z archive: <https://www.7-zip.org/recover.html>

			       February	14, 2022			7ZZ(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=7zz&sektion=1&manpath=FreeBSD+Ports+14.3.quarterly>

home | help