7z(1)
okay so bestie, you've found 7z(1) โ the manpage from the General Commands Manual for the 7-Zip file archiver, aka the compression tool with a high compression ratio that absolutely ate. grab a snack, we're going through the whole thing ๐
โจ NAME โจ
7z โ 7-Zip file archiver with a high compression ratio
๐ SYNOPSIS ๐
like, here's the shape of every single call, and yes there are four flavors:
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 โจ
so here's the tea: there are several variants of the 7z executable, and they are not all the same girlie. let me introduce them:
7zโ full featured with plugin support ๐ the main character, plugins and all.7zzโ full featured single binary executable with no plugins support. same full-featured energy, but it's one single binary and plugins said bye ๐7zaโ supports major formats only, no plugins, but smaller executable size. lowkey the compact queen ๐7zrโ only supports LZMA codec and related formats (7z,lzma,xz), no plugins, but smallest executable size. tiniest of them all, literally ๐
๐ฅ OPTIONS ๐ฅ
๐ Commands ๐
these are the vibes โ pick one, it's the thing you're actually doing:
aโ Add files to archive ๐ซถbโ Benchmark (a little performance moment, no archive needed)dโ Delete files from archiveeโ Extract files from archive (without using directory names โ yes, it flattens, she's messy like that)hโ Calculate hash values for files ๐iโ Show information about supported formats (the info dump you need)lโ List contents of archivernโ Rename files in archivetโ Test integrity of archive (vibe check on your archive, fr fr)uโ Update files to archivexโ eXtract files with full paths (the one that keeps the directory structure, we stan ๐ธ)
๐ Switches ๐
all the little modifiers, in order, nothing skipped, no cap:
--โ Stop switches and@listfileparsing ๐-ai[r[-|0]]{@listfile|!wildcard}โ Include archives-ax[r[-|0]]{@listfile|!wildcard}โ eXclude archives-ao{a|s|t|u}โ set Overwrite mode-anโ disablearchive_namefield-bb[0-3]โ set output log level-bdโ disable progress indicator (no lil progress bar for you)-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 ๐๏ธ and the sub-params are:-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 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 forx,e,hcommands-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 forl(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}]โ assign Work directory. Empty path means a temporary directory-x[r[-|0]]{@listfile|!wildcard}โ eXclude filenames-yโ assume Yes on all queries ๐ (extremely "just say yes and don't ask me again" energy)
๐ SEE ALSO ๐
- 7-Zip โ
https://www.7-zip.org/๐ฆ
๐ COPYRIGHT ๐
Copyright ยฉ 1999-2023 Igor Pavlov.
Distributed under the LGPL-2.1+ license.
and that's the whole page, bestie, you're basically a 7-Zip scholar now ๐ โจ this was version 22.01, dated May 2023 โ so if anyone asks, that's the era we're living in ๐
๐ฆ where this page comes from
- opensuse-leap 16.0: 7zip 26.02-160000.1.1 ยท BSD-3-Clause AND LGPL-2.1-or-later AND SUSE-Public-Domain
- opensuse-leap 16.0: 7zip 26.02-160000.1.1 ยท BSD-3-Clause AND LGPL-2.1-or-later AND SUSE-Public-Domain
- opensuse-leap 16.0: 7zip 26.02-160000.1.1 ยท BSD-3-Clause AND LGPL-2.1-or-later AND SUSE-Public-Domain
- opensuse-leap 16.0: 7zip 26.02-160000.1.1 ยท BSD-3-Clause AND LGPL-2.1-or-later AND SUSE-Public-Domain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms