7-zip · 7z format 7z is a new archive format, providing a high compression ratio. the main...
TRANSCRIPT
![Page 1: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/1.jpg)
7-Zip
Welcometo7-Zip15.14
7-Zipisafilearchiverwithahighcompressionratio.
Thedocumentationfor7-Zipincludes:
Generalinformationabout7-Zip
User'sGuidefor7-ZipFileManager
User'sGuideforcommandlineversion
SeeAlso
FrequentlyAskedQuestions(FAQ)
Copyright(c)1999-2015IgorPavlov
Website:www.7-zip.org
Support:www.7-zip.org/support.html
![Page 2: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/2.jpg)
GeneralInformation
Themainfeaturesof7-Zip
Powerfulfilemanager
Highcompressionratioandhighspeed
Bignumberofsupportedarchiveformats
Additionalcommandlineversion
SeeAlso
Licenseforuseanddistribution
![Page 3: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/3.jpg)
Supportedformats
Format Creation FilenameExtensions7z X 7z
BZIP2 X bz2bzip2tbz2tbzGZIP X gzgziptgzTAR X tarWIM X wimswmXZ X xztxzZIP X zipzipxjarxpiodtodsdocxxlsxepubAPM apmAR aradeblibARJ arjCAB cabCHM chmchwchichq
COMPOUND msimspdocxlspptCPIO cpio
CramFS cramfsDMG dmgExt extext2ext3ext4imgFAT fatimgHFS hfshfsxHXS hxshxihxrhxqhxwlitiHEX ihexISO isoimgLZH lzhlhaLZMA lzmaMBR mbrMsLZ mslzMub mubNSIS nsisNTFS ntfsimg
![Page 4: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/4.jpg)
MBR mbrRAR rarr00RPM rpmPPMD ppmdQCOW2 qcowqcow2qcow2cSPLIT 001002...
SquashFS squashfsUDF udfisoimgUEFIc scapUEFIs uefifVDI vdiVHD vhdVMDK vmdkWIM wimesdXAR xarpkgZ ztaz
![Page 5: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/5.jpg)
ZIP7-ZipcreatesZIPcompatiblearchives.7-ZipsupportsthefollowingZIPcompressionmethods:
0-Store
1-Shrink(decompressiononly)
6-Implode(decompressiononly)
8-Deflate
9-Deflate64
12-BZip2
14-LZMA
95-xz(decompressiononly)
98-PPMd
99-WinZipAES
FilescompressedwithotherZIPcompressionmethodscan'tbeextractedbythecurrentversionofthe7-Zip.Butthesesupportedmethodsarethemostpopulartoday,andtherefore7-ZipcandecompressmostZIParchives.Toextractfilescompressedwithnon-supportedmethodsyoumustusesomeotherZIPutility.
7-ZipsupportstheZip64extensionofZIPformat.
Thecurrentversionof7-Zipdoesn'tsupportZipmultivolumearchives.
![Page 6: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/6.jpg)
LZH7-ZipsupportsLZHarchivesonlyforlisting,browsinganddecompressing.7-Zipsupports-lh0-,-lh4-,-lh5-,-lh6-and-lh7-methods.
![Page 7: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/7.jpg)
7zFormat
7zisanewarchiveformat,providingahighcompressionratio.
Themainfeaturesofthe7zformat:
Openarchitecture
Highcompressionratio
StrongAES-256encryption
Abilitytouseanycompression,conversionorencryptionmethod
Supportsfileswithsizesupto16000000000GB
Unicodefilenames
Solidcompression
Archiveheaderscompression
7zhasanopenarchitecture,soitcansupportanynewcompressionmethods.
Thefollowingmethodscurrentlyareintegratedinto7z:
Method DescriptionLZMA ImprovedandoptimizedversionofLZ77algorithm
LZMA2 LZMA-basedcompressionmethod.ItprovidesbettermultithreadingsupportthanLZMA
PPMD DmitryShkarin'sPPMdHwithsmallchangesBCJ Converterfor32-bitx86executablesBCJ2 Converterfor32-bitx86executablesBZip2 StandardBWTalgorithmDeflate StandardLZ77-basedalgorithm
LZMAisthedefaultandgeneralcompressionmethodof7zformat.ThemainfeaturesoftheLZMAmethod:
Highcompressionratio
Variabledictionarysize(upto4GB)
![Page 8: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/8.jpg)
Compressionspeed:about1MB/son2GHzCPU
Decompressionspeed:about10-20MB/son2GHzCPU
Smallmemoryrequirementfordecompression(dependsfromdictionarysize)
Smallcodesizefordecompression:about5KB
Supportsmulti-threadingandP4'shyper-threading
TheLZMAcompressionalgorithmisverysuitableforembeddedapplications.IfyouwanttouseLZMAcode,youcanaskforconsultation,customcodeprogramming,andrequireddeveloperlicensesat
www.7-zip.org/support.html
![Page 9: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/9.jpg)
AESencryption7-ZipsupportsencryptionwiththeAES-256algorithm.Thisalgorithmusesacipherkeywithlengthof256bits.Tocreatethekey,7-ZipusesaderivationfunctionbasedonanSHA-256hashalgorithm.Akeyderivationfunctionproducesaderivedkeyfromatextpassworddefinedbytheuser.Toincreasethecostofanexhaustivesearchforpasswords,7-Zipusesabignumberofiterationstoproducethecipherkeyfromthetextpassword.
![Page 10: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/10.jpg)
TipsforselectingpasswordlengthHereisanestimateofthetimerequiredforanexhaustivepasswordsearchattack,whenthepasswordisarandomsequenceoflowercaseLatinletters.
ThemostcomplextaskforpasswordsearchattackisSHA-256calculation.SpecialSHA-256hardwareorGPUcanbeusedtoacceleratepasswordsearchattack.NowmodernGPUcanprovideabout10timesmoreperformanceforSHA-256calculationthanmodernCPU.AndspecialSHA-256hardwarecanprovideabout20timesmoreperformancethanGPU.
Wesupposethatoneuserwithabudgetofabout$2000(forGPUs)cancheck10000passwordspersecondandanorganizationwithabudgetofabout10^9USD(onethousandmillionUSdollars)cancheck3*10^12passwordspersecond.Wealsosupposethattheprocessorinusedoublesitsperformanceeverytwoyears;so,eachadditionalLatinletterofalongpasswordaddsabout9yearstoanexhaustivekeysearchattack.
Theresultisthisestimateofthetimetosucceedinanattack:
PasswordLength SingleUserAttack OrganizationAttack1 1s 1s2 1s 1s3 2s 1s4 1min 1s5 30min 1s6 12hours 1s7 14days 1s8 1year 1s9 10years 2s10 19years 1min11 28years 30min12 37years 12hours13 46years 14days
![Page 11: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/11.jpg)
14 55years 1year15 64years 10years16 73years 19years17 82years 28years18 91years 37years19 100years 46years
![Page 12: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/12.jpg)
Performance
ZIPFormat
Compressionratioresultsareverydependentuponthedatausedforthetests.Wecompared7-Zipwithsomeoftheleadingcommercialarchivers:PKZIP2.04g,WinZip7.0.
FILESET:TheCanterburyCorpus(11filestotaling2,810,784bytes,popularfilesetusedtocompressionrates).
Archiver Compressedsize Ratio7-Zip(zipformat) 676284 100%PKZIP2.04g-ex 726047 107%WinZip7.0(Max) 731499 108%
7zFormat
7zisthenewarchiveformat,providingahighcompressionratio.
FILESET:TheGIMP1.2.4forWindowsafterfullinstallation(127subfolders,1304filestotaling27,128,826bytes).TheGIMPistheGNUImageManipulationProgram.Itcanbedownloadedfromwww.gimp.org.
Archiver Compressedsize Ratio7-Zip(7zformat) 5445402 100%WinRAR3.10 6004155 110%WinAce2.3 6242424 115%CABARC1.0 6455327 119%7-Zip(zipformat) 9461621 174%PKZIP2.50 9842800 181%
GZIPFormat
7-ZipprovidesthebestcompressionratioforGZIPformat.ThecompressionratioisequaltoitscompressionratioforZIPformat(above).
![Page 13: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/13.jpg)
FrequentlyAskedQuestions(FAQ)
CanIuse7-Zipinacommercialorganization?
Yes,7-Zipisfreesoftware.Youcanuseitonanycomputer.Youdon'tneedtoregisterorpayfor7-Zip.
Whydoesn'tthecommandlineversionaddfilesthatdonothaveanyextension?
Youprobablyuseda*.*wildcard.7-Zipdoesn'tusetheWindowssystemwildcardparser;so,7-Zipdoesn'tfollowthearchaicrulebywhich*.*matcheseveryfilename.7-Ziptreats*.*asmatchingonlyafilenamewithanextension.Toprocessallfiles,youmustusea*wildcardorjustomitthewildcardentirely.
WhataboutsupportforACEarchives?
SupportforACEcanbeimplemented,ifthesourcecodeofthatformatismadeavailable,andifthesourcecodelicensewillallowusingthatcode.
![Page 14: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/14.jpg)
License
7-ZipCopyright(C)1999-2014IgorPavlov.
Licensesforfilesare:
7z.dll:GNULGPL+unRARrestriction
Allotherfiles:GNULGPL
TheGNULGPL+unRARrestrictionmeansthatyoumustfollowbothGNULGPLrulesandunRARrestrictionrules.
Note:Youcanuse7-Ziponanycomputer,includingacomputerinacommercialorganization.Youdon'tneedtoregisterorpayfor7-Zip.
ReadfileLicense.txtforfullinformationaboutlicense.
![Page 15: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/15.jpg)
Thanks
Iwouldliketothank:
myspacefromsf.net-forportingtoUnix/Linux(p7zip),testing,bugfixingandmore.
ARJSoftware-forARJ.
EricBiggers-forLZMSdescription(wimlib).
WeiDai-forSHA-256codeandCrypto++Library.
JeffGilchrist-forcompressingtests.
SzymonGrabowski-forsomeideas.
MicrosoftCorporation-forCAB/WIMformatsdescriptions,andWiX(WindowsInstallerXML).
Nullsoft,Inc.andNSISteam-forNSIS(NullsoftScriptableInstallSystem).
RobertMartinez-7-ZipLogo.
AlexanderRatushnyak-forcompressingtests.
EugeneRoshal-forRAR.
MatthewRussotto-forCHM/CABformatdescription.
JulianSeward-forBZip2.
EugeneShelwien-forsomeideasandalgorithms.
DmitryShkarin-forPPMdalgorithm.
YoshiokaTsuneo-forTAR32program.
VadimYoockin-forcompressingtests.
BulatZiganshin-forsomeideas.
JohnMichaelWilliams-forhelpfilecorrections.
AppleInc.-forHFS.
![Page 16: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/16.jpg)
vu1tur(DMG2IMG)-for.DMGhints.
YutakaSawada-forhintstoZIPStrongEncryptionformat.
NTFS-3Gteam-forhintstoNTFS.
PhillipLougher-forSquashFS.
HaruyasuYoshizaki-forLHA/LZH.
![Page 17: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/17.jpg)
7-ZipFileManager
The7-ZipFileManagerisaprogramformanipulatingfilesandfolders.
The7-ZipFileManagercanworkwithtwopanels.YoucanswitchbetweenpanelsbypressingtheTabbutton.Mostoftheoperationscanbeexecutedusingkeyboardshortcutsorbyright-clickingonitemsandselectingtheappropriatecommandfrommenu.
InThisSection
MenuItemsandShortcutKeysDescribesthemenuitemsandkeyboardshortcut.
OptionsDialogBoxDescribeswhatsettingsyoucanchangethataffectthe7-ZipFileManager.
BenchmarkDescribesa7-ZipBenchmarkformeasuringCPUperformance.
AboutDialogBoxProvidesinformationabout7-Zip.
PluginsDescribespluginsforthe7-ZipFileManager.
Youhaveaccesstothefollowingitemsfromrootfolderin7-ZipFileManager:
Computer:computer'sdisks
Documents:MyDocumentsfolderofcurrentuser
Network
\\.:thefolderforlow-levelaccesstodisks.Youmusthaveadministrator'srightstousethatfolder.Youcan
![Page 18: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/18.jpg)
copy.isoimagesfromCD/DVDtofile.
viewNTFS/FATpartitionsvia7-Zipparser.Itprovidesread-onlyaccesstofiles.
![Page 19: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/19.jpg)
OptionsDialogBox
Youcanchangemanyofthesettingsthataffectthe7-ZipFileManagerintheOptionsdialogbox.ToaccessthisdialogboxselectOptionsfromtheToolsmenu.
Theoptionsdialogboxcontainsthefollowingpages:
SystemPage
7-Zip
FoldersPage
EditorPage
SettingsPage
LanguagePage
![Page 20: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/20.jpg)
SystemPageAllowsyoutospecifythebehaviorof7-Zipinthefilingsystem.
Associate7-ZipwithAllowstoassociate7-Zipwithfilenameextensions.Therearetwolistofassociations:for"CurrentUser"andfor"AllUsers".Tosetassociationsfor"AllUsers"youmustrun7-ZipFileManagerwithadministratorrights.Eachassociationcanhaveupto4states:
noassociation.
AppName-theextensionisassociatedwithanotherprogram(not7-Zip).
[7-Zip]-theextensionisassociatedwithanothercopy(edition)of7-Zip.
7-Zip-theextensionisassociatedwiththiscopyof7-Zip.
Youcanswitchbetweenthesestatesbyclickingoncell.Oryoucanchangestatesforallextensionbyclickingon"+"button.
![Page 21: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/21.jpg)
7-ZipPageAllowsyoutospecifybehaviorof7-ZipinWindowsShell.
Integrate7-ZiptoshellcontextmenuSelectthischeckboxtoadd7-ZipcommandstoShellContextMenu.Therearetwocheckboxesin64-bitsystem.Soit'spossibletoenable7-Zipcontextmenufor32-bitand64-bitapplications.
CascadedcontextmenuSelectthischeckboxtogroup7-Zipcontextmenuitemstoone7-Zipsubmenu.
IconsincontextmenuSelectthischeckboxtoshow7-Zipiconincontextmenuitems.
EliminateduplicationofrootfolderThatoptionallowstoeliminateduplicationofrootfolderfor"Extractto"operations,ifallfilesinarchiveareplacedinfolderwithnamethatisidenticaltonameofoutputfolder.
ContextmenuitemsListstheoptionalcontextmenuitems.Ifanitemischecked,7-Zipwilladdthisitemtothecontextmenu.
![Page 22: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/22.jpg)
FoldersPageAllowsyoutosetthefolderswhich7-Zipwilluseforinternalpurposes.
WorkingfolderTheworkingfoldersectionallowsyoutospecifyafolderwhichwillbeusedfortemporaryarchivefiles:
Systemtempfolder7-ZipwillusetheWindowstempfolder.
Current7-Zipwillusethefoldercontainingthetargetarchive.
Specified7-Zipwillusethefolderspecifiedinthefollowingeditcontrol.
UseforremovabledrivesonlySpecifieswhether7-Zipshouldusethespecifiedfoldersettingsonlyforremovabledrives;forotherdrives,7-Zipwillcreatetemporaryarchivesinthefoldercontainingthetargetarchive.Ifyouclearthischeckbox,7-Zipalwayswillusethespecifiedfoldersettingsmodealways.
7-Zipusestemporaryarchivefilesforallupdateoperations.So,forspeedreasons,itisrecommendedthatyouselecttheSystemtempfolderoptionandselectUseforremovabledrivesonlycheckbox.
![Page 23: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/23.jpg)
EditorPageAllowsyoutospecifysettingsfortheeditor.
ViewSpecifiesthepathtotheviewerthatwillbeusedfor"View"command(F3).
EditorSpecifiesthepathtotheeditorthatwillbeusedfor"Edit"command(F4).
DiffSpecifiesthepathtoafilecomparisonutilitythatshowsthedifferencesbetweentwofiles.
![Page 24: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/24.jpg)
SettingsPageAllowsyoutospecifysomesettings.
Show..itemShows..iteminfilelist.
ShowrealfileiconsShowsrealfileiconsinfilelist.Ifthisoptionisenabled,listingupdatescanbeslower.
FullrowselectWhenanitemisselected,theitemandallitssubitemsarehighlighted.
ShowgridlinesDisplaysgridlinesarounditemsandsubitems.
Single-clicktoopenanitemIfenabled,FileManageropensfilesandfoldersbysingle-clickingthem.
AlternativeselectionmodeIfenabled,FileManagerkeepsselectionmarkwhenyoumovecursor.
ShowsystemmenuShowsasystemcontextsub-menuintheFilemenu.
UselargememorypagesIfenabled,7-Zipwilltrytouselargepages.Thisfeatureallowsanincreaseinspeedofcompression.Thismaycause7-Ziptopausewhenstartingcompression,becauseofallocationofthelargepages.Also,theWindowsTaskManagerdoesn'tshowtherealmemoryusageoftheprogram,if7-Zipuseslargepages.ThisfeatureworksonlyonWindows2003/XPx64.Alsoyoumusthaveadministrator's
![Page 25: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/25.jpg)
rightsforyoursystem.RecommendedsizeofRAM:1GBormore.Toinstallthisfeatureyoumustrun7-ZipFileManageratleastonce,closeitandrebootthesystem.
![Page 26: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/26.jpg)
LanguagePageAllowsyoutochangethedefaultlanguage.
LanguageListstheavailablelanguages.
![Page 27: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/27.jpg)
Benchmark
Thisformallowsyoutomeasuretheperformanceofyourcomputer.
Therearetwotests:
1. CompressionwithLZMAmethod
2. DecompressionwithLZMAmethod
ThebenchmarkshowsaratinginMIPS(millioninstructionspersecond).Theratingvalueiscalculatedfromthemeasuredspeed,anditisnormalizedwithresultsofIntelCore2CPUwithmulti-threadingoptionswitchedoff.SoifyouhavemodernCPUfromIntelorAMD,ratingvaluesinsingle-threadmodemustbeclosetorealCPUfrequency.
Youcanchangethedictionarysizetoincreasememoryusage.Alsoyoucanchangethenumberofthreads.
TheCPUUsagecolumnshowsthepercentageoftimetheprocessorisworking.It'snormalizedforaone-threadload.Forexample,180%CPUUsagefor2threadscanmeanthataverageCPUusageisabout90%foreachthread.
TheRating/Usagecolumnshowsratingnormalizedfor100%ofCPUusage.ThatcolumnshowsperformanceoftheoneCPUthread.ItmustbeclosetorealCPUfrequency,ifyouhavemodernCPU.
TheTotalratingshowsaveragesofthecompressinganddecompressionratings.
Compressionspeedandratingstronglydependfrommemory(RAM)latency.
DecompressionspeedandratingstronglydependonCPUintegeroperations.Forexample,anIntelPentium4hasbigbranchmispredictionpenalty(whichiseffectoflongpipeline)andprettyslowmultiplyandshiftoperations.So,thePentium4hasprettylowdecompressingratings.
Alsotheprogramcheckspossibleerrors.Iftheprogramshowssomeerrormessage,inmostcasesitmeansthatyourRAMisdefective.Ifso,don'tuse7-Zipforcompressingdata,sincesucherrorscanleadtodata
![Page 28: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/28.jpg)
losses.
![Page 29: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/29.jpg)
AboutDialogBox
TheAboutdialogboxprovidesinformationabout7-Zip.ThisdialogboxisavailablefromtheHelpmenu.
Presswww.7-zip.orgbuttonforopening7-ZipHomePage.
![Page 30: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/30.jpg)
Plugins
The7-ZipFileManagercanuseinternalandexternalplugins.
Currently7-Zipusesthefollowingplugins:
7-ZipPluginformanipulatingarchives.
![Page 31: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/31.jpg)
7-ZipPlugin
7-Zipisapluginformanipulatingarchives.ItmakesallarchivefileslooklikeusualfoldersinFileManager.
Mostoftheoperationswithcompressedfilescanbeinitiatedbyright-clickingonfilesintheFileManager(orinWindowsExplorer)andselectingtheappropriatecommandfromamenu.
Using7-Zip
Openingarchive
Therearetwowaystoopenanarchivefile:
Ifyouhavethefiletypeassociatedwith7-Zip,thenyoucanopenthefilewith7-Zipbydouble-clickingthefileorbyright-clickingandselectingtheOpencommand.
Youcanright-clickthearchivefile,pointto7-Zip,andthenclicktheOpencommanditem.
Extractingarchive
Therearetwowaystoextractfilesfromanarchive:
Toextractallfilesfromanarchiveright-clickthearchivefile,pointto7-Zip,andthenclicktheExtractfiles...commanditem.
Toextractspecificfilesfromanarchive,openitbyOpenarchivewith7-Zip,selecttheitemstoextract,andruntheCopyTo...command.
ExtractDialogwillappear.
Testingarchive
Totestanarchive,right-clickthearchivefile,pointto7-Zip,andthenclicktheTestarchivecommanditem.
Creatingandupdatingfilesinanarchive
![Page 32: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/32.jpg)
Forcreatingorupdatinganarchivefile,right-clickthefile(s)orfolder(s)youwanttocompress,pointto7-Zip,andthenclicktheAddtoarchive...commanditem.AddtoArchiveDialogwillappear.
![Page 33: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/33.jpg)
AddtoArchiveDialogBox
Allowsyoutospecifyoptionsforcreatingorupdatinganarchive.
Howtocallthisdialogbox
1. InWindowsExplorerorin7-Zip,right-clickthefile(s)orfolder(s)youwanttocompress.
2. Pointto7-Zip,andthenclicktheAddtoarchive...commanditem.
Parameters
ArchiveProvidesaspaceforyoutospecifyadestinationarchivename.Youcanclick"..."buttontodisplay"Open"dialogboxthatyoucanusetolocatearchive.
ArchiveformatSpecifiesaformatofcreatedarchive.Someformats(gzipandbzip2)donotsupportcompressingmoretheonefileperarchive.
Compressionlevel
Specifiescompressionlevel.Thereare6levelsofcompression:
Value MeaningStore Fileswillbecopiedtoarchivewithoutcompression.Fastest Fastestcompression.Fast Fastcompression.Normal Compressionwithbalancedsettings.
Maximum CangiveahighercompressionratiothanNormallevel.Butitcanbeslower,anditcanrequiremorememory.
Ultra CangiveahighercompressionratiothanMaximumlevel.Butitcanbeslower,anditcanrequiremorememory.
Compressionmethod
![Page 34: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/34.jpg)
Specifiescompressionmethod.Eacharchiveformatcanhaveitsowncompressionmethods:
Method Description
LZMA
It'sbasecompressionmethodfor7zformat.Evenoldversionsof7-ZipcandecompressarchivescreatedwithLZMAmethod.Itprovideshighcompressionratioandveryfastdecompression.
LZMA2
Defaultcompressionmethodof7zformat.LZMA2isLZMA-basedcompressionmethod.ItprovidesbettermultithreadingsupportthanLZMA.Butcompressionratiocanbeworseinsomecases.ForbestcompressionratiowithLZMA2use1or2CPUthreads.IfyouuseLZMA2withmorethan2threads,7-zipsplitsdatatochunksandcompressesthesechunksindependently(2threadspereachchunk).
PPMdDmitryShkarin'sPPMdHalgorithmwithsmallchanges.Usuallyitprovideshighcompressionratioandhighspeedfortextfiles.
BZip2StandardcompressionmethodbasedonBWTalgorithm.Usuallyitprovideshighspeedandprettygoodcompressionratiofortextfiles.
Deflate
StandardcompressionmethodofZIPandGZipformats.Compressionratioisnottoohigh.Butitprovidesprettyfastcompressinganddecompressing.Deflatemethodsupportsonly32KBdictionary.
Deflate64 ModifiedversionofDeflatealgorithmwithbiggerdictionary(64KB).
Estimated7-Zipperformanceandmemoryrequirementsfor2GHzdualcoreCPU:
Method Level DictionarySize
CompressingSpeed
DecompressingSpeed
MemoryforCompressing
LZMA
fastest 64KB 4.5MB/s
15MB/s
3MBfast 1MB 3MB/s 10MBnormal 16MB 2MB/s 186MBmaximum 32MB 1.8MB/s 376MB
![Page 35: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/35.jpg)
ultra 64MB 1.6MB/s 709MB
PPMD
fast 4MB 1.4MB/s 6MBnormal 24MB 1.2MB/s 26MBmaximum 64MB 1.0MB/s 66MBultra 192MB 0.9MB/s 194MB
Deflate
fast
32KB
15MB/s
40MB/s3MB
normal 3.5MB/smaximum 1.5MB/s
4MBultra 0.4MB/s
BZip2normal
900KB3MB/s
16MB/s 20MBmaximum 1.2MB/sultra 0.4MB/s
Dictionarysize
SpecifiesDictionarysizeforcompressionmethod.
Usually,ahigherDictionarysizegivesahighercompressionratio.Butcompressingcanbesloweranditcanrequiremorememory.
Memory(RAM)usageforLZMAcompressingisabout11timesmorethandictionarysize.MemoryusageforLZMAdecompressingisclosetovalueofdictionarysize.MemoryusageforPPMdcompressinganddecompressingisalmostequaltodictionarysize.
Wordsize
Specifiesthelengthofwords,whichwillbeusedtofindidenticalsequencesofbytesforcompression.
UsuallyforLZMAandDeflate,bigWordsizegivesalittlebitbettercompressionratioandslowercompressionprocess.AbigWordsizeparametercansignificantlyincreasecompressionratioforfileswhichcontainlongidenticalsequencesofbytes.ForPPMd,theWordsizestronglyaffectsbothcompressionratioandcompression/decompressionspeed.
SolidBlocksize
Specifiesthesizeofasolidblock.Youcanalsodisablesolidmode.
![Page 36: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/36.jpg)
Insolidmodeallfileswillbecompressedascontinuousdatablocks.Usuallycompressingtoasolidarchiveimprovesthecompressionratio.Youcanusethisoptiononlyfor7zarchives.Theupdatingofsolid.7zarchivescanbeslow,sinceitcanrequiresomerecompression.
.
NumberofCPUthreads
Specifiesthenumberofthreadsforcompressing.AbignumberofthreadscanspeedupcompressionspeedonMulti-Processorsystems.Sometimesitcanincreasespeedevenonsingle-coreCPU.
Splittovolumes{Size}[b|k|m|g]
SpecifiesvolumesizesinBytes,Kilobytes(1Kilobyte=1024bytes),Megabytes(1Megabyte=1024Kilobytes)orGigabytes(1Gigabyte=1024Megabytes).Ifyouspecifyonly{Size},7-zipwilltreatitasbytes.It'spossibletospecifyseveralvalues.Example:
10k15k2m
Thefirstvolumewillbe10KB,thesecondwillbe15KB,andallotherswillbe2MB.
Parameters
Allowsyoutospecifyparametersforcompression.Seethe-m(Method)switchdescriptionformoredetails.Omitthe-mprefix(asin-mswitch)whenusingthisdialogbox.
Examplesf=delta:4
usesDelta:4filter(ifyouwanttocompressWAVfiles).
f=bcj2
usesBCJ2filter(forx86executables).
![Page 37: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/37.jpg)
Updatemode
Specifiesupdatemode:
Value MeaningAddandreplacefiles Addallspecifiedfilestothearchive.
Updateandaddfiles
Updateolderfilesinthearchiveandaddfilesthatarenewtothearchive.
Freshenexistingfiles
Updatespecifiedfilesinthearchivethatareolderthantheselecteddiskfiles.
Synchronizefiles
Replacespecifiedfilesonlyifaddedfilesarenewer.Alwaysaddthosefiles,whicharenotpresentinthearchive.Deletefromarchivethosefiles,whicharenotpresentonthedisk.
Options
Specifiescompressionoptions:
Option Meaning
CreateSFXarchive
Createself-extractingarchive.Youcanusethisoptiononlyfor7zarchives.Lookto-sfx(CreateSFXarchive)switchdescriptionformoredetailsaboutSFXmodules.
Compresssharedfiles
Compressfilesopenforwritingbyanotherapplications.
Deletefilesaftercompression
Deletefilesafterincludingtoarchive.Soitworkslikemovingfilestoarchive.7-Zipdeletesfilesattheendofoperationandonlyifarchivewassuccessfullycreated.
Encryption
Specifiespasswordandencryptionoptions.
EnterpasswordSpecifypasswordhere
Reenterpassword
![Page 38: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/38.jpg)
Reenterpasswordhereforverification
ShowPasswordShowsPassword
EncryptionmethodSpecifiestheencryptionmethod.For7zformat,itcanbeonlyAES-256.ForZIPformatyoucanselectZipCryptoorAES-256.UseZipCrypto,ifyouwanttogetarchivecompatiblewithmostoftheZIParchivers.AES-256providesstrongerencryption,butnowAES-256issupportedonlyby7-Zip,WinZipandsomeotherZIParchivers.
EncryptfilenamesEnablesordisablesarchiveheaderencryption,includingfilenameencryption.
![Page 39: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/39.jpg)
ExtractDialogBox
Allowsyoutospecifyoptionsforextractingfilesfromarchive.
Howtorunthisdialogbox
Therearetwowaystorunthisdialogtoextractallfilesfromanarchive:
InWindowsExplorerorin7-Zip,right-clickthearchivefile,pointto7-Zip,andthenclickExtractfiles....
Selectthearchivefilein7-ZipandpressExtractbutton.
Parameters
ExtracttoProvidesaspaceforyoutospecifyanoutputfolder.Youcanclick"..."buttontodisplay"Browseforfolder"dialogboxthatyoucanusetolocateoutputfolder.
Pathmode
Specifyextractmode:
Value MeaningFullpathnames Extractfileswithfullpathnames.
Nopathnames Extractfileswithoutfolderpaths.
Absolutepathnames
Extractfileswithabsolutepathnames.7-Zipdoesn'tusefolderspecifiedin"Extractto"fieldforfilesinarchivethathaveabsolutepathnames.Absolutepathcanincludedrivename.
EliminateduplicationofrootfolderThatoptionallowstoeliminateduplicationofrootfolder,ifallfilesinarchiveareplacedinfolderwithnamethatisidenticaltonameofoutputfolder.
![Page 40: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/40.jpg)
Overwritemode
Specifyoverwritemodeforfilesthatalreadypresentondisk:
Value MeaningAskbeforeoverwrite Askbeforeoverwritingexistingfiles.
Overwritewithoutprompt
Overwriteexistingfileswithoutprompt.
Skipexistingfiles
Skipextractingofexistingfiles.
Autorename
Renameextractedfiles,ifafilewiththesamenamealreadyexists.Forexample,filedocument.txtwillberenamedtodocument_1.txt.
Autorenameexistingfiles
Renameexistingfiles,ifafilewiththesamenamealreadyexists.Forexample,filedocument.txtwillberenamedtodocument_1.txt.
Password
Specifiesapasswordforencryptedarchives.
ShowPasswordShowapasswordinPasswordfield.
RestorefilesecurityRestorefilesecurityinformation,ifarchivecontainsthatinformation.ThatfeaturenowisimplementedonlyforWIMarchives.
![Page 41: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/41.jpg)
CommandLineVersionUser'sGuide
7z.exeisthecommandlineversionof7-Zip.7z.exeuses7z.dllfromthe7-Zippackage.7z.dllisusedbythe7-ZipFileManageralso.
7za.exe(a=alone)isastandaloneversionof7-Zip.7za.exesupportsonly7z,lzma,cab,zip,gzip,bzip2,Zandtarformats.7za.exedoesn'tuseexternalmodules.
CommandLinesyntax
ExitCodes
Commands
Switches
![Page 42: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/42.jpg)
CommandLineSyntax7z<command>[<switch>...]<base_archive_name>[<arguments>...]
<arguments>::=<switch>|<wildcard>|<filename>|<list_file>
<switch>::=<switch_symbol><switch_characters>[<option>]
<switch_symbol>::='/'|'-'
<list_file>::=@{filename}
Expressionsinsquarebrackets(between'['and']')areoptional.
Expressionsincurlybraces('{'and'}')meanthatinsteadofthatExpression(includingbraces),theusermustsubstitutesomestring.
Expression
expression1|expression2|...|expressionN
meansthatany(butonlyone)fromtheseexpressionsmustbespecified.
Commandsandswitchescanbeenteredinupperorlowercase.
Commandisthefirstnon-switchargument.
The"base_archive_name"mustbethefirstfilenameonthecommandlineafterthecommand.
Theswitchesandotherfilenamescanbeinanyorder.
Wildcardsorfilenameswithspacesmustbequoted:
"Dir\Programfiles\*"
Dir\"Programfiles"\*
Switchoptionscanbecombinedtosavecommandlinelength.However,someswitchoptionstakeoptionalstringargumentsandtherefore,mustbethelastoptioninacombinedargumenttokenstringbecause7-Zipacceptstherestoftheargumenttokenastheoptionalargument.
7-ZipuseswildnamematchingsimilartoWindows95:
'*'meansasequenceofarbitrarycharacters.
'?'meansanycharacter.
7-Zipdoesn'tusethesystemwildcardparser.7-Zipdoesn'tfollow
![Page 43: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/43.jpg)
thearchaicrulebywhich*.*meansanyfile.7-Ziptreats*.*asmatchingthenameofanyfilethathasanextension.Toprocessallfiles,youmustusea*wildcard.
Examples:
*.txt meansallfileswithanextensionof".txt"?a* meansallfileswithasecondcharacterof"a"*1* meansallnamesthatcontainscharacter"1"*.*.* meansallnamesthatcontaintwoatleast"."characters
Thedefaultwildcard"*"willbeusedifthereisnofilename/wildcardinthecommandline.
Slash('\')attheendofapathmeansadirectory.WithoutaSlash('\')attheendofthepath,thepathcanrefereithertoafileoradirectory.
![Page 44: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/44.jpg)
Listfile
Youcansupplyoneormorefilenamesorwildcardsforspeciallistfiles(filescontaininglistsoffiles).Thefilenamesinsuchlistfilemustbeseparatedbynewlinesymbol(s).
Forlistfiles,7-ZipusesUTF-8encodingbydefault.Youcanchangeencodingusing-scsswitch.
Multiplelistfilesaresupported.
Forexample,ifthefile"listfile.txt"containsthefollowing:
Myprograms\*.cpp
Src\*.cpp
thenthecommand
addstothearchive"archive.zip"all"*.cpp"filesfromdirectories"Myprograms"and"Src".
![Page 45: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/45.jpg)
ShortandLongFileNames7-Zipsupportsshortfilenames(likeFILENA~1.TXT)insomecases.However,it'sstronglyrecommendedtouseonlythereal(long)filenames.
![Page 46: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/46.jpg)
ExitCodesfrom7-Zip
7-Zipreturnsthefollowingexitcodes:
Code Meaning0 Noerror
1 Warning(Nonfatalerror(s)).Forexample,oneormorefileswerelockedbysomeotherapplication,sotheywerenotcompressed.
2 Fatalerror7 Commandlineerror8 Notenoughmemoryforoperation255 Userstoppedtheprocess
![Page 47: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/47.jpg)
CommandLineCommands
Thecommandisthefirstnon-switchargumentonthecommandline.
Commandnamesarenotcasesensitive.
SeealsoCommandLineSyntaxformoredetailsaboutusingthecommandline.
![Page 48: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/48.jpg)
Commandsquickreference
Command Descriptiona Addb Benchmarkd Deletee Extracth Hashi Showinformationaboutsupportedformatsl Listrn Renamet Testu Updatex eXtractwithfullpaths
![Page 49: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/49.jpg)
a(Add)command
Addsfilestoarchive.
Examples7zaarchive1.zipsubdir\
addsallfilesandsubfoldersfromfoldersubdirtoarchivearchive1.zip.Thefilenamesinarchivewillcontainsubdir\prefix.
7zaarchive2.zip.\subdir\*
addsallfilesandsubfoldersfromfoldersubdirtoarchivearchive2.zip.Thefilenamesinarchivewillnotcontainsubdir\prefix.
cd/Dc:\dir1\
7zac:\archive3.zipdir2\dir3\
Thefilenamesinarchivec:\archive3.zipwillcontaindir2\dir3\prefix,buttheywillnotcontainc:\dir1\prefix.
7zaFiles.7z*.txt-r
addsall*.txtfilesfromcurrentfolderanditssubfolderstoarchiveFiles.7z.
Notes
7-Zipdoesn'tusethesystemwildcardparser.7-Zipdoesn'tfollowthearchaicrulebywhich*.*meansanyfile.7-Ziptreats*.*asmatchingthenameofanyfilethathasanextension.Toprocessallfiles,youmustusea*wildcard.
Switchesthatcanbeusedwiththiscommand
-i(Include)-m(Method)-p(SetPassword)-r(Recurse)-sdel(Deletefilesafterincludingtoarchive)-sfx(createSFX)
![Page 50: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/50.jpg)
-si(useStdIn)-sni(StoreNTsecurityinformation)-sns(StoreNTFSalternateStreams)-so(useStdOut)-spf(Usefullyqualifiedfilepaths)-ssw(Compresssharedfiles)-stl(Setarchivetimestampfromthemostrecentlymodifiedfile)-t(Typeofarchive)-u(Update)-v(Volumes)-w(WorkingDir)-x(Exclude)
Seealso
Commands:d(Delete),u(Update)Switches:-u(Update)
![Page 51: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/51.jpg)
b(Benchmark)command
MeasuresspeedoftheCPUandchecksRAMforerrors.
Syntaxb[number_of_iterations][-mmt{N}][-md{N}][-mm={Method}]
Therearetwotests:
1. CompressingwithLZMAmethod
2. DecompressingwithLZMAmethod
ThebenchmarkshowsaratinginMIPS(millioninstructionspersecond).TheratingvalueiscalculatedfromthemeasuredCPUspeedanditisnormalizedwithresultsofIntelCore2CPUwithmulti-threadingoptionswitchedoff.SoifyouhaveIntelCore2Duo,ratingvaluesmustbeclosetorealCPUfrequency.
Youcanchangetheupperdictionarysizetoincreasememoryusageby-md{N}switch.Also,youcanchangethenumberofthreadsby-mmt{N}switch.
TheDictcolumnshowsdictionarysize.Forexample,21means2^21=2MB.
TheUsagecolumnshowsthepercentageoftimetheprocessorisworking.It'snormalizedforaone-threadload.Forexample,180%CPUUsagefor2threadscanmeanthataverageCPUusageisabout90%foreachthread.
TheR/Ucolumnshowstheratingnormalizedfor100%ofCPUusage.ThatcolumnshowstheperformanceofoneaverageCPUthread.
Avrshowsaveragesfordifferentdictionarysizes.
Totshowsaveragesofthecompressionanddecompressionratings.
Compressionspeedandratingstronglydependonmemory(RAM)latency.
Decompressionspeedandratingstronglydependontheinteger
![Page 52: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/52.jpg)
performanceoftheCPU.Forexample,theIntelPentium4hasbigbranchmispredictionpenalty(whichisaneffectofitslongpipeline)andprettyslowmultiplyandshiftoperations.So,thePentium4hasprettylowdecompressingratings.
YoucanrunaCRCcalculationbenchmarkbyspecifying-mm=crc.ThattestshowsthespeedofCRCcalculationinMB/s.Thefirstcolumnshowsthesizeoftheblock.ThenextcolumnshowsthespeedofCRCcalculationforonethread.Theothercolumnsareresultsformulti-threadedCRCcalculation.
With-mm=*switchyoucanrunacomplexbenchmark.Ittestshashcalculationmethods,compressionandencryptioncodecsof7-Zip.NotethatthetestsofLZMAhavebigweightin"total"results.AndtheresultsarenormilizedwithAMDK8cpuincomplexbenchmark.
Examples7zb
runsbenchmarking.
7zb-mmt1-md26
runsbenchmarkingwithonethreadand64MBdictionary.
7zb30
runsbenchmarkingwithdefaultsettingsfor30iterations.
7zb-mm=*
runscomplex7-Zipbenchmark.
![Page 53: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/53.jpg)
d(Delete)command
Deletesfilesfromarchive.
Example7zdarchive.zip*.bak-r
deletes*.bakfilesfromarchivearchive.zip.
Notes
7-Zipdoesn'tusethesystemwildcardparser.7-Zipdoesn'tfollowthearchaicrulebywhich*.*meansanyfile.7-Ziptreats*.*asmatchingthenameofanyfilethathasanextension.Toprocessallfiles,youmustusea*wildcard.
Switchesthatcanbeusedwiththiscommand
-i(Include)-m(Method)-p(SetPassword)-r(Recurse)-sns(StoreNTFSalternateStreams)-u(Update)-w(WorkingDir)-x(Exclude)
Seealso
Commands:a(Add),u(Update)
Switches:-spf(Usefullyqualifiedfilepaths)-stl(Setarchivetimestampfromthemostrecentlymodifiedfile)-u(Update)
![Page 54: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/54.jpg)
e(Extract)command
Extractsfilesfromanarchivetothecurrentdirectoryortotheoutputdirectory.Theoutputdirectorycanbespecifiedby-o(SetOutputDirectory)switch.
Thiscommandcopiesallextractedfilestoonedirectory.Ifyouwantextractfileswithfullpaths,youmustusex(Extractwithfullpaths)command.
7-Zipwillprompttheuserbeforeoverwritingexistingfilesunlesstheuserspecifiesthe-y(AssumeYesonallqueries)switch.Iftheusergivesanoanswer,7-Zipwillpromptforthefiletobeextractedtoanewfilename.Thenanoanswerskipsthatfile;or,yespromptsfornewfilename.
7-Zipacceptsthefollowingresponses:
Answer Abbr. ActionYes y No n
Always a AssumeYESforALLsubsequentqueriesofthesameclass
Skip s AssumeNOforALLsubsequentqueriesofthesameclass
Quit q Quittheprogram
Abbreviatedresponsesareallowed.
Examples7zearchive.zip
extractsallfilesfromarchivearchive.ziptothecurrentdirectory.
7zearchive.zip-oc:\soft*.cpp-r
extractsall*.cppfilesfromarchivearchive.ziptoc:\softfolder.
Notes
![Page 55: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/55.jpg)
7-Zipdoesn'tusethesystemwildcardparser.7-Zipdoesn'tfollowthearchaicrulebywhich*.*meansanyfile.7-Ziptreats*.*asmatchingthenameofanyfilethathasanextension.Toprocessallfiles,youmustusea*wildcard.
Switchesthatcanbeusedwiththiscommand
-ai(Includearchives)-an(Disableparsingofarchive_name)-ao(Overwritemode)-ax(Excludearchives)-i(Include)-o(SetOutputDirectory)-p(SetPassword)-r(Recurse)-si(useStdIn)-sni(StoreNTsecurityinformation)-sns(StoreNTFSalternateStreams)-so(useStdOut)-spf(Usefullyqualifiedfilepaths)-t(Typeofarchive)-x(Exclude)-y(AssumeYesonallqueries)
Seealso
Commands:x(Extractwithfullpaths)
![Page 56: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/56.jpg)
h(Hash)command
Calculatehashvaluesforfiles.
Syntaxh[-scrc{Method}][files]
Supportedmethods:CRC32,CRC64,SHA1,SHA256.DefaultmethodisCRC32.
Examples7zha.txt
calculatesCRC32fora.txt.
7zh-scrcsha256a.iso
calculatesSHA256fora.iso.
7zh*
calculatesCRC32forallfilesincurrentfolderandallsubfolders.
Notes
7-Zipshowshashvaluesforeachfile,thesumofhashvaluesandthesumthatincludesallhashvaluesofdataandallhashvaluesforfilenames.
7-ZiprepresentshashvaluesforCRC32andCRC64asintegernumbersinhex.
7-ZiprepresentshashvaluesForSHA1andSHA256assequenceofbytesinhex.
Switchesthatcanbeusedwiththiscommand
-i(Include)-m(Method)-r(Recurse)
![Page 57: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/57.jpg)
-scrc(Sethashmethod)-si(useStdIn)-sns(StoreNTFSalternateStreams)-ssw(Compresssharedfiles)-x(Exclude)
![Page 58: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/58.jpg)
l(Listcontentsofarchive)command
Listscontentsofarchive.
Examples7zlarchive.zip
listsallfilesfromarchivearchive.zip.
Notes
7-Zipdoesn'tusethesystemwildcardparser.7-Zipdoesn'tfollowthearchaicrulebywhich*.*meansanyfile.7-Ziptreats*.*asmatchingthenameofanyfilethathasanextension.Toprocessallfiles,youmustusea*wildcard.
Switchesthatcanbeusedwiththiscommand
-ai(Includearchives)-an(Disableparsingofarchive_name)-ax(Excludearchives)-i(Include)-slt(Showtechnicalinformation)-sns(StoreNTFSalternateStreams)-p(SetPassword)-r(Recurse)-t(Typeofarchive)-x(Exclude)
![Page 59: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/59.jpg)
rn(Rename)command
Renamesfilesinarchive.
Syntaxrn<archive_name><src_file_1><dest_file_1>[<src_file_2><dest_file_2>...]
Example7zrna.7zold.txtnew.txt2.txtfolder\2new.txt
renamesold.txttonew.txtand2.txttofolder\2new.txt.
Notes
Switchesthatcanbeusedwiththiscommand
-i(Include)-m(Method)-p(SetPassword)-r(Recurse)-stl(Setarchivetimestampfromthemostrecentlymodifiedfile)-u(Update)-w(WorkingDir)-x(Exclude)
![Page 60: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/60.jpg)
t(Testintegrityofarchive)command
Testsarchivefiles.
Example7ztarchive.zip*.doc-r
tests*.docfilesinarchivearchive.zip.
Notes
7-Zipdoesn'tusethesystemwildcardparser.7-Zipdoesn'tfollowthearchaicrulebywhich*.*meansanyfile.7-Ziptreats*.*asmatchingthenameofanyfilethathasanextension.Toprocessallfiles,youmustusea*wildcard.
Switchesthatcanbeusedwiththiscommand
-ai(Includearchives)-an(Disableparsingofarchive_name)-ax(Excludearchives)-i(Include)-p(SetPassword)-r(Recurse)-sns(StoreNTFSalternateStreams)-x(Exclude)
![Page 61: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/61.jpg)
u(Update)command
Updateolderfilesinthearchiveandaddfilesthatarenotalreadyinthearchive.
Note:theupdatingofsolid.7zarchivescanbeslow,sinceitcanrequiresomerecompression.
Example7zuarchive.zip*.doc
updates*.docfilestoarchivearchive.zip.
Notes
7-Zipdoesn'tusethesystemwildcardparser.7-Zipdoesn'tfollowthearchaicrulebywhich*.*meansanyfile.7-Ziptreats*.*asmatchingthenameofanyfilethathasanextension.Toprocessallfiles,youmustusea*wildcard.
Switchesthatcanbeusedwiththiscommand
-i(Include)-m(Method)-p(SetPassword)-r(Recurse)-sfx(createSFX)-si(useStdIn)-so(useStdOut)-sni(StoreNTsecurityinformation)-sns(StoreNTFSalternateStreams)-ssw(Compresssharedfiles)-spf(Usefullyqualifiedfilepaths)-stl(Setarchivetimestampfromthemostrecentlymodifiedfile)-t(Typeofarchive)-u(Update)-w(WorkingDir)-x(Exclude)
![Page 62: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/62.jpg)
Seealso
Commands:a(Add),d(Delete),
Switches:-u(Update)
![Page 63: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/63.jpg)
x(Extractwithfullpaths)command
Extractsfilesfromanarchivewiththeirfullpathsinthecurrentdirectory,orinanoutputdirectoryifspecified.
Seethee(Extract)commanddescriptionformoredetails.
Examples7zxarchive.zip
extractsallfilesfromthearchivearchive.ziptothecurrentdirectory.
7zxarchive.zip-oc:\soft*.cpp-r
extractsall*.cppfilesfromthearchivearchive.ziptoc:\softfolder.
Notes
7-Zipdoesn'tusethesystemwildcardparser.7-Zipdoesn'tfollowthearchaicrulebywhich*.*meansanyfile.7-Ziptreats*.*asmatchingthenameofanyfilethathasanextension.Toprocessallfiles,youmustusea*wildcard.
Switchesthatcanbeusedwiththiscommand
-ai(Includearchives)-an(Disableparsingofarchive_name)-ao(Overwritemode)-ax(Excludearchives)-i(Include)-o(SetOutputDirectory)-p(SetPassword)-r(Recurse)-si(useStdIn)-sni(StoreNTsecurityinformation)-sns(StoreNTFSalternateStreams)-so(useStdOut)-spf(Usefullyqualifiedfilepaths)-t(Typeofarchive)-x(Exclude)
![Page 64: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/64.jpg)
-y(AssumeYesonallqueries)
Seealso
Commands:e(Extract)
![Page 65: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/65.jpg)
CommandLineSwitches
Syntax<switch;>::=<switch_symbol><switch_characters>[<option>]
<switch_symbol>::='/'|'-'
Onthecommandline,aswitchconsistsofaswitchspecifier,eitheradash(-)oraforwardslash(/),followedbythenameoftheswitch.Switchnamescannotbeabbreviated.
Someswitchestakeanargumentaftertheswitchname.Nospacesortabsareallowedwithinaswitchspecification.Switchnamesarenotcasesensitive,butargumentscanbecasesensitive.
Switchcanbeusedinanyplaceincommandline.
SeealsoCommandLineSyntaxformoredetailsaboutusingthecommandline.
![Page 66: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/66.jpg)
Switchquickreference
Switch Description-- Stopswitchesparsing-ad ShowdialogboxinGUIversion(7zg)-ai Includearchivefilenames-an Disableparsingofarchive_name-ao Overwritemode-ax Excludearchivefilenames-bb[0-3] Setoutputloglevel-bd Disableprogressindicator-bs{o|e|p}{0|1|2} Setoutputstreamforoutput/error/progress
-bt Showexecutiontimestatistics-i Includefilenames-m SetCompressionMethod-o SetOutputdirectory-p SetPassword-r Recursesubdirectories-sa SetArchivenamemode-scc Setcharsetforforconsoleinput/output-scrc Sethashfunction-scs Setcharsetforlistfiles-sdel Deletefilesafterincludingtoarchive-seml Sendarchivebyemail-sfx CreateSFXarchive-si ReaddatafromStdIn-slp SetLargePagesmode-slt Showtechnicalinformation-sni StoreNTsecurityinformation
![Page 67: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/67.jpg)
-sns StoreNTFSalternateStreams
-snc Extractfileasalternatestream,ifthereis':'characterinname
-snr Replace':'characterto'_'characterinpathsofalternatestreams
-snh Storehardlinksaslinks(WIMandTARformatsonly)
-snl Storesymboliclinksaslinks(WIMandTARformatsonly)
-so WritedatatoStdOut-spd Disablewildcardmatchingforfilenames
-spe Eliminateduplicationofrootfolderforextractarchivecommand
-spf Usefullyqualifiedfilepaths-ssc SetSensitiveCasemode-ssw Compressfilesopenforwriting
-stl Setarchivetimestampfromthemostrecentlymodifiedfile
-stm{HexMask} SetCPUthreadaffinitymask(hexadecimalnumber).
-stx{Type} Excludearchivetype-t Typeofarchive-u Updateoptions-v CreateVolumes-w SetWorkingdirectory-x Excludefilenames-y AssumeYesonallqueries
![Page 68: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/68.jpg)
--(Stopswitchesparsing)switch
Disablesswitchparsingafter"--"onthecommandline.Thisistoallow7-Ziptousefilenamesthatstartwith"-".
Syntax--
Examples7zt---ArchiveName.7z
tests-ArchiveName.7zarchive.
![Page 69: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/69.jpg)
-ai(Includearchivefilenames)switch
Specifiesadditionalincludearchivefilenamesandwildcards.
Multipleincludeswitchesaresupported.
Syntax-ai[<recurse_type>]<file_ref>
<recurse_type>::=r[-|0]
<file_ref>::=@{listfile}|!{wildcard}
Parameters
<recurse_type>
Specifieshowwildcardsandfilenamesinthisswitchmustbeused.Ifthisoptionisnotgiven,recursionwillbenotused.Formoredetailsseespecificationofthe-r(Recurse)switch.
<recurse_type>::=r[-|0]
<file_ref>
Specifiesfilenamesandwildcardsorlistfilethatspecifyprocessedfiles.
<file_ref>::=@{listfile}|!{wildcard}
Option Description{listfile} Specifiesnameoflistfile.SeeListfiledescription.{wildcard} Specifieswildcardorfilename.
Examples7zt-an-air!*.7z
tests*.7zarchivesincurrentdirectoryandallit'ssubdirectories.
Commandsthatcanbeusedwiththisswitch
![Page 70: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/70.jpg)
e(Extract),l(List),t(Test),x(Extractwithfullpaths)
Seealso
Switches:-ax(Excludearchives)-an(Disableparsingofarchive_name)
![Page 71: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/71.jpg)
-an(Disableparsingofarchive_name)switch
Disablesparsingofthearchive_namefieldonthecommandline.Thisswitchmustbeusedwiththe-ai(Includearchives)switch.Ifyouuseafilelistforyourarchives,youspecifyitwiththe-aiswitch,soyouneedtodisableparsingofarchive_namefieldfromcommandline.
Syntax-an
Examples7zt-an-ai!*.7z-ax!a*.7z
testsall*.7zarchives,excepta*.7zarchives.
Commandsthatcanbeusedwiththisswitch
e(Extract),l(List),t(Test),x(Extractwithfullpaths)
Seealso
Switches:-ai(Includearchives)-ax(Excludearchives)
![Page 72: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/72.jpg)
-ao(Overwritemode)switch
Specifiestheoverwritemodeduringextraction,tooverwritefilesalreadypresentondisk.
Syntax-ao[a|s|t|u]
Switch Description-aoa OverwriteAllexistingfileswithoutprompt.-aos Skipextractingofexistingfiles.
-aou aUtorenameextractingfile(forexample,name.txtwillberenamedtoname_1.txt).
-aot autorenameexistingfile(forexample,name.txtwillberenamedtoname_1.txt).
Examples7zxtest.zip-aoa
extractsallfilesfromtest.ziparchiveandoverwritesexistingfileswithoutanyprompt.
Commandsthatcanbeusedwiththisswitch
e(Extract),x(Extractwithfullpaths)
Seealso
Switches:-y(assumeYesonallqueries),
![Page 73: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/73.jpg)
-ax(Excludearchivefilenames)switch
Specifiesarchivestobeexcludedfromtheoperation.
Multipleexcludearchiveswitchesaresupported.
Syntax-ax[<recurse_type>]<file_ref>
<recurse_type>::=r[-|0]
<file_ref>::=@{listfile}|!{wildcard}
See-xi(Includearchivefilenames)switchdescriptionforinformationaboutoptionparameters.
Examples7zt-an-ai!*.7z-ax!a*.7z
testsall*.7zarchives,excepta*.7zarchives.
Commandsthatcanbeusedwiththisswitch
e(Extract),l(List),t(Test),x(Extractwithfullpaths)
Seealso
Switches:-ai(Includearchives)-an(Disableparsingofarchive_name)
![Page 74: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/74.jpg)
-bb(Setoutputloglevel)switch
TheswitchsetsoutputloglevelforDelete/Add/Update/Extractoperations.
Syntax-bb[0-3]
Loglevel Description
-bb0 disablelog(default).-bb1or-bb
shownamesofprocessedfilesinlog.
-bb2shownamesofadditionalfilesthatwereprocessedinternallyinsolidarchives:skippedfilesfor"Extract"operation,repackedfilesfor"Add"/"Update"operations.
-bb3 showinformationaboutadditionaloperations(Analyze,Replicate)for"Add"/"Update"operations.
Examples7zaa.7z*.txt-bb
adds*.txtfilestoa.7zarchiveandshowsallfilesthatwereprocessed.
7zua.7z*.txt-bb3
updates*.txtfilesina.7zarchiveandshowsinformationaboutadditionaloperations.
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),e(Extract),u(Update),x(Extractwithfullpaths)
![Page 75: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/75.jpg)
-bs(Setoutputstreamforoutput/error/progressline)switch
Syntax-bs{o|e|p}{0|1|2}
{id} StreamTypeo standardoutputmessagese errormessagesp progressinformation{N} StreamDestination0 disablestream1 redirecttostdoutstream2 redirecttostderrstream
Defaultvalues:o1,e2,p1.
Examples7zta.7z-bse1>messages.txt
testsa.7zarchiveandsendserrormessagestostdoutthatisredirectedtomessages.txt
7za-si-so-bsp2-txz-an<file.tar>file.tar.xz
compressesfile.tar(fromstdin)tofile.tar.xz(stdoutstream)andshowsprogressinformationinstderrstreamthatcanbeseenatconsolewindow.
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),h(Hash),l(List),e(Extract),u(Update),x(Extractwithfullpaths)
![Page 76: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/76.jpg)
-i(Includefilenames)switch
Specifiesadditionalincludefilenamesandwildcards.
Multipleincludeswitchesaresupported.
Syntax-i[<recurse_type>]<file_ref>
<recurse_type>::=r[-|0]
<file_ref>::=@{listfile}|!{wildcard}
Parameters
<recurse_type>
Specifieshowwildcardsandfilenamesinthisswitchmustbeused.Ifthisoptionisnotgiven,thentheglobalvalue,assignedbythe-r(Recurse)switchwillbeused.Formoredetailsseespecificationofthe-r(Recurse)switch.
<recurse_type>::=r[-|0]
<file_ref>
Specifiesfilenamesandwildcards,oralistfile,forfilestobeprocessed.
<file_ref>::=@{listfile}|!{wildcard}
Option Description{listfile} Specifiesnameoflistfile.SeeListfiledescription.{wildcard} Specifieswildcardorfilename.
Examples7za-tzipsrc.zip*.txt-ir!DIR1\*.cpp
addstosrc.ziparchiveall*.txtfilesfromcurrentdirectoryandall*.cppfilesfromdirectoryDIR1andfromallit'ssubdirectories.
![Page 77: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/77.jpg)
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),e(Extract),h(Hash),l(List),rn(Rename),t(Test),u(Update),x(Extractwithfullpaths)
Seealso
Switches:-r(Recurse),-x(Exclude)
![Page 78: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/78.jpg)
-m(SetcompressionMethod)switch
Specifiesthecompressionmethod.
Syntax-m<method_parameters>
Theformatforthisswitchdependsonthearchivetype.
Zip
GZip
BZip2
7z
XZ
WIM
-mswitchalsocanspecifyhashmethodforh(Hash)command,
Notes:"Defaultvalue"inswitchesdescriptionsmeansthevaluethatwillbeusedifswitchisnotspecified.
It'sallowedtousereducedformsforbooleanswitches:sw+orswinsteadsw=on,andsw-insteadofsw=off.
![Page 79: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/79.jpg)
Zip
Parameter Default Descriptionx=[0|1|3|5|7|9] 5 Setslevelofcompression.
m={MethodID} Deflate Setsamethod:Copy,Deflate,Deflate64,BZip2,LZMA,PPMd.
fb={NumFastBytes} 32 SetsnumberofFastBytesforDeflateencoder.
pass={NumPasses} 1 SetsnumberofPassesforDeflateencoder.
d={Size}[b|k|m] 900000 SetsDictionarysizeforBZip2mem={Size}[b|k|m] 24 SetssizeofusedmemoryforPPMd.o={Size} 8 SetsmodelorderforPPMd.mt=[off|on|{N}] on Setsmultithreadingmode.em={EncryptionMethodID} ZipCrypto
Setsaencryptionmethod:ZipCrypto,AES128,AES192,AES256
tc=[off|on] onStoresNTFStimestampsforfiles:Modificationtime,Creationtime,Lastaccesstime.
cl=[off|on] off 7-Zipalwaysuseslocalcodepageforfilenames.
cu=[off|on] off 7-ZipusesUTF-8forfilenamesthatcontainnon-ASCIIsymbols.
cp={CodePage} off Setscodepage
Bydefault(ifclandcuswitchesarenotspecified),7-ZipusesUTF-8encodingonlyforfilenamesthatcontainsymbolsunsupportedbylocalcodepage.
x=[0|1|3|5|7|9]
Setslevelofcompression.x=0meansCopymode(nocompression).
Deflate/Deflate64settings:
Level NumFastBytes NumPasses Description1 Fastest
![Page 80: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/80.jpg)
32 13 Fast5 Normal7 64 3 Maximum9 128 10 Ultra
x=1andx=3withDeflatemethodsetfastmodeforcompression.
BZip2settings:
Level Dictionary NumPasses Description1 100000
1Fastest
3 500000 Fast5
900000Normal
7 2 Maximum9 7 Ultra
fb={NumFastBytes}
SetsthenumberoffastbytesfortheDeflate/Deflate64encoder.Itcanbeintherangefrom3to258(257forDeflate64).Usually,abignumbergivesalittlebitbettercompressionratioandaslowercompressionprocess.Alargefastbytesparametercansignificantlyincreasethecompressionratioforfileswhichcontainlongidenticalsequencesofbytes.
pass={NumPasses}
SetsnumberofpassesforDeflateencoder.Itcanbeintherangefrom1to15forDeflateandfrom1to10forBZip2.Usually,abignumbergivesalittlebitbettercompressionratioandaslowercompressionprocess.
d={Size}[b|k|m]
SetstheDictionarysizeforBZip2.Youmustspecifythesizeinbytes,kilobytes,ormegabytes.ThemaximumvaluefortheDictionarysizeis900000b.Ifyoudonotspecifyanysymbolfromset[b|k|m],dictionarysizewillbecalculatedasDictionarySize=2^Sizebytes.
mem={Size}[b|k|m]
SetsthesizeofmemoryusedforPPMd.Youmustspecifythesizein
![Page 81: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/81.jpg)
bytes,kilobytes,ormegabytes.Themaximumvalueis256MB=2^28bytes.Thedefaultvalueis24(16MB).Ifyoudonotspecifyanysymbolfromtheset[b|k|m],thememorysizewillbecalculatedas(2^Size)bytes.PPMdusesthesameamountofmemoryforcompressionanddecompression.
o={Size}
SetsthemodelorderforPPMd.Thesizemustbeintherange[2,16].Thedefaultvalueis8.
mt=[off|on|{N}]
Setsmultithreadmode.Ifyouhaveamultiprocessorormulticoresystem,youcangetaspeedincreasewiththisswitch.Thisoptionaffectsonlycompression(withanymethod)anddecompressionofBZip2streams.Eachthreadinthemultithreadmodeuses32MBofRAMforbuffering.Ifyouspecify{N},7-ZiptriestouseNthreads.
![Page 82: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/82.jpg)
GZipGZipusesthesameparametersasZip,butGZipcompressesonlywithDeflatemethod.SoGZipsupportsonlythefollowingparameters:x,fb,pass.
![Page 83: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/83.jpg)
BZip2
Parameter Default Descriptionx=[1|3|5|7|9] 5 Setslevelofcompression.pass={NumPasses} 1 SetsnumberofPassesforBzip2encoder.d={Size}[b|k|m] 900000 SetsDictionarysizeforBZip2mt=[off|on|{N}] on Setsmultithreadingmode.
x=[1|3|5|7|9]
Setslevelofcompression
Level Dictionary NumPasses Description1 100000
1Fastest
3 500000 Fast5
900000Normal
7 2 Maximum9 7 Ultra
d={Size}[b|k|m]
SetstheDictionarysizeforBZip2.Youmustspecifythesizeinbytes,kilobytes,ormegabytes.ThemaximumvaluefortheDictionarysizeis900000b.Ifyoudonotspecifyanysymbolfromset[b|k|m],dictionarysizewillbecalculatedasDictionarySize=2^Sizebytes.
pass={NumPasses}
Setsthenumberofpasses.Itcanbeintherangefrom1to10.Thedefaultvalueis1fornormalmode,2formaximummodeand7forultramode.Abiggernumbercangivealittlebitbettercompressionratioandaslowercompressionprocess.
mt=[off|on|{N}]
Setsmultithreadmode.Ifyouhaveamultiprocessorormulticoresystem,youcangetaspeedincreasewiththisswitch.Ifyouspecify{N},forexamplemt=4,7-Ziptriestouse4threads.
![Page 84: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/84.jpg)
Parameter Default Descriptionx=[0|1|3|5|7|9] 5 Setslevelofcompression.yx=[0|1|3|5|7|9] 5 Setsleveloffileanalysis.s=[off|on|[e][{N}f][{N}b|{N}k|{N}m|{N}g]
on Setssolidmode.
qs=[off|on] off Sortfilesbytypeinsolidarchives.
f=[off|on|FilterID] onEnablesordisablesfilters.FilterID:Delta:{N},BCJ,BCJ2,ARM,ARMT,IA64,PPC,SPARC.
hc=[off|on] on Enablesordisablesarchiveheadercompressing.
he=[off|on] off Enablesordisablesarchiveheaderencryption.
b{C1}[s{S1}]:{C2}[s{S2}] Setsbindingbeetwencoders.
{N}={MethodID}[:param1][:param2][..] LZMA2 Setsamethod:LZMA,LZMA2,PPMd,BZip2,Deflate,Delta,BCJ,BCJ2,Copy.mt=[off|on|{N}] on Setsmultithreadingmode.mtf=[off|on] on Setmultithreadingmodeforfilters.tm=[off|on] on StoreslastModifiedtimestampsforfiles.tc=[off|on] off StoresCreationtimestampsforfiles.ta=[off|on] off StoreslastAccesstimestampsforfiles.
x=[0|1|3|5|7|9]
Setslevelofcompression
Level Method Dictionary FastBytes MatchFinder Filter Description
0 Copy Nocompression.
1 LZMA2 64KB 32 HC4 BCJ Fastestcompressing
![Page 85: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/85.jpg)
3 LZMA2 1MB 32 HC4 BCJ Fastcompressing
5 LZMA2 16MB 32 BT4 BCJ Normalcompressing
7 LZMA2 32MB 64 BT4 BCJ Maximumcompressing
9 LZMA2 64MB 64 BT4 BCJ2 Ultracompressing
Note:"x"worksas"x=9".
yx=[0|1|3|5|7|9]
Setsleveloffileanalysis
Level Description0 Noanalysis.
1ormoreWAVfileanalysis(forDeltafilter).7ormore EXEfileanalysis(forExecutablefilters).9ormore analysisofallfiles(Deltaandexecutablefilters).
Defaultlevelis5:"yx=5".
"yx"worksas"yx=9".
Ifthelevelofanalysisissmallerthan9,7-Zipanalysesonlyfilesthathavesomefilenameextensions:EXE,DLL,WAV.7-Zipreadssmalldatablockatthebeginningoffileandtriestoparsetheheader.Itsupportsonlysomeformats:WAV,PE,ELF,Mach-O.Thenitcanselectfilterthatcanincreasecompressionratioforthatfile.
Bydefault7-Zipusesx86filters(BCJorBCJ2)forPEfiles(EXE,DLL).7-Zipdoesn'tuseanalysisindefault(yx=5)mode.If(yx=7),thenanalysisisusedforPEfiles,anditcanincreasecompressionratioforfilesfornon-x86platformslikeARM.
s=[off|on|[e][{N}f][{N}b|{N}k|{N}m|{N}g)]
Enablesordisablessolidmode.Thedefaultmodeiss=on.Insolidmode,filesaregroupedtogether.Usually,compressinginsolidmodeimprovesthecompressionratio.
![Page 86: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/86.jpg)
e Useaseparatesolidblockforeachnewfileextension
{N}f Setthelimitfornumberoffilesinonesolidblock
{N}b|{N}k|{N}m|{N}g
Setalimitforthetotalsizeofasolidblockinbytes
Thesearethedefaultlimitsforthesolidblocksize:
CompressionLevel Solidblocksize
Store 0BFastest 16MBFast 128MBNormal 2GBMaximum 4GBUltra 4GB
Limitationofthesolidblocksizeusuallydecreasescompressionratiobutgivesthefollowingadvantages:
Decreaseslossesincaseoffuturearchivedamage.
Decreasesextractiontimeofagroupoffiles(orjustonefile),solongasthegroupdoesn'tcontaintheentirearchive.
Theupdatingofsolid.7zarchivescanbeslow,sinceitcanrequiresomerecompression.
Example:
s=100f10m
setsolidmodewith100files&10MBlimitsperonesolidblock.
f=[off|on|FilterID]
Enablesordisablescompressionfilters.Thedefaultmodeisf=on,when7-zipusesfilteronlyforexecutablefiles:dll,exe,ocx,sfx,sys.ItusesBCJ2filterinUltramodeandBCJfilterinothermodes.Iff=FilterIDifspecified,7-zipusesspecifiedfilterforallfiles.FilterID
![Page 87: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/87.jpg)
canbe:Delta:{N},BCJ,BCJ2,ARM,ARMT,IA64,PPC,SPARC.
hc=[off|on]
Enablesordisablesarchiveheadercompressing.Thedefaultmodeishc=on.Ifarchiveheadercompressingisenabled,thearchiveheaderwillbecompressedwithLZMAmethod.
he=[off|on]
Enablesordisablesarchiveheaderencryption.Thedefaultmodeishe=off.
b{C1}[s{S1}]:{C2}[s{S2}]
BindsoutputstreamS1incoderC1withinputstreamS2incoderC2.Ifstreamnumberisnotspecified,streamwithnumber0willbeused.
Usallycoderhasoneinputstreamandoneoutputstream.In7zsomecoderscanhavemultipleinputandoutputstreams.
Forexample,BCJ2encoderhasoneinputstreamandfouroutputstreams.
mt=[off|on|{N}]
Setsmultithreadmode.Ifyouhaveamultiprocessorormulticoresystem,youcangetaincreasewiththisswitch.7-ZipsupportsmultithreadmodeonlyforLZMA/LZMA2compressionandBZip2compression/decompression.Ifyouspecify{N},forexamplemt=4,7-Ziptriestouse4threads.LZMAcompressionusesonly2threads.
{N}={MethodID}[:param1][:param2]...[:paramN]
Setscompressionmethod.Youcanuseanynumberofmethods.ThedefaultmethodisLZMA2.
{N}setstheindexnumberofmethodinmethodschain.Numbersmustbeginfrom0.Methodsthathavesmallernumberswillbeusedbeforeothers.
Parametersmustbeinoneofthefollowingforms:
{ParamName}={ParamValue}.
![Page 88: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/88.jpg)
{ParamName}{ParamValue},if{ParamValue}isnumberand{ParamName}doesn'tcontainnumbers.
Supportedmethods:
MethodID DescriptionLZMA LZ-basedalgorithmLZMA2 LZMA-basedalgorithmPPMd DmitryShkarin'sPPMdHwithsmallchangesBZip2 BWTalgorithmDeflate LZ+HuffmanCopy Nocompression
Supportedfilters:
MethodID DescriptionDelta DeltafilterBCJ converterforx86executablesBCJ2 converterforx86executables(version2)ARM converterforARM(littleendian)executablesARMT converterforARMThumb(littleendian)executablesIA64 converterforIA-64executablesPPC converterforPowerPC(bigendian)executablesSPARC converterforSPARCexecutables
Filtersincreasethecompressionratioforsometypesoffiles.Filtersmustbeusedwithoneofthecompressionmethod(forexample,BCJ+LZMA).
LZMA
LZMAisanalgorithmbasedonLempel-Zivalgorithm.Itprovidesveryfastdecompression(about10-20timesfasterthancompression).Memoryrequirementsforcompressionanddecompressionalsoaredifferent(seed={Size}[b|k|m|g]switchfordetails).
Parameter Default Descriptiona=[0|1] 1 Setscompressingmode
![Page 89: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/89.jpg)
d={Size}[b|k|m|g] 24 SetsDictionarysizemf={MF_ID} bt4 SetsMatchFinderfb={N} 32 SetsnumberofFastBytesmc={N} 32 SetsNumberofCyclesforMatchFinderlc={N} 3 SetsnumberofLiteralContextbits-[0,8]lp={N} 0 SetsnumberofLiteralPosbits-[0,4]pb={N} 2 SetnumberofPosBits-[0,4]
a=[0|1]
Setscompressionmode:0=fast,1=normal.Defaultvalueis1.
d={Size}[b|k|m|g]
SetsDictionarysizeforLZMA.Youmustspecifythesizeinbytes,kilobytes,ormegabytes.Themaximumvaluefordictionarysizeis1536MB,but32-bitversionof7-Zipallowstospecifyupto128MBdictionary.DefaultvaluesforLZMAare24(16MB)innormalmode,25(32MB)inmaximummode(-mx=7)and26(64MB)inultramode(-mx=9).Ifyoudonotspecifyanysymbolfromtheset[b|k|m|g],thedictionarysizewillbecalculatedasDictionarySize=2^Sizebytes.FordecompressingafilecompressedbyLZMAmethodwithdictionarysizeN,youneedaboutNbytesofmemory(RAM)available.
mf={MF_ID}
SetsMatchFinderforLZMA.Defaultmethodisbt4.Algorithmsfromhc*groupdon'tprovideagoodcompressionratio,buttheyoftenworkprettyfastincombinationwithfastmode(a=0).Memoryrequirementsdependondictionarysize(parameter"d"intablebelow).
MF_ID Dictionary MemoryUsage Description
bt2 9.5*d
BinaryTree
2byteshashing
bt3 11.5*d 3byteshashing
64KB...48MB
![Page 90: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/90.jpg)
bt4 11.5*d +4MB4byteshashing
64MB...1024MB
10.5*d
hc464KB...48MB 7.5*d
HashChain64MB...1024
MB 6.5*d
Note:Youroperationsystemalsoneedssomeamountofphysicalmemoryforinternalpurposes.Sokeepatleast32MBofphysicalmemoryunused.
fb={N}
SetsnumberoffastbytesforLZMA.Itcanbeintherangefrom5to273.Thedefaultvalueis32fornormalmodeand64formaximumandultramodes.Usually,abignumbergivesalittlebitbettercompressionratioandslowercompressionprocess.
mc={N}
Setsnumberofcycles(passes)formatchfinder.Itcanbeinrangefrom0to1000000000.Defaultvalueis(16+number_of_fast_bytes/2)forBT*matchfindersand(8+number_of_fast_bytes/4)forHC4matchfinder.Ifyouspecifymc=0,LZMAwillusedefaultvalue.Usually,abignumbergivesalittlebitbettercompressionratioandslowercompressionprocess.Forexample,mf=HC4andmc=10000canprovidealmostthesamecompressionratioasmf=BT4.
lc={N}
Setsthenumberofliteralcontextbits(highbitsofpreviousliteral).Itcanbeinrangefrom0to8.Defaultvalueis3.Sometimeslc=4givesgainforbigfiles.
lp={N}
Setsthenumberofliteralposbits(lowbitsofcurrentpositionforliterals).Itcanbeintherangefrom0to4.Thedefaultvalueis0.Thelpswitchisintendedforperiodicaldatawhentheperiodisequalto2^value(wherelp=value).Forexample,for32-bit(4bytes)periodicaldatayoucanuselp=2.Oftenit'sbettertosetlc=0,ifyouchangelp
![Page 91: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/91.jpg)
switch.
pb={N}
Setsthenumberofposbits(lowbitsofcurrentposition).Itcanbeintherangefrom0to4.Thedefaultvalueis2.Thepbswitchisintendedforperiodicaldatawhentheperiodisequal2^value(wherelp=value).
LZMA2
LZMA2ismodifiedversionofLZMA.itprovidesthefollowingadvantagesoverLZMA:
Bettercompressionratiofordatathancan'tbecompressed.LZMA2canstoresuchblocksofdatainuncompressedform.Alsoitdecompressessuchdatafaster.
Bettermultithreadingsupport.Ifyoucompressbigfile,LZMA2cansplitthatfiletochunksandcompressthesechunksinmultiplethreads.
Parameter Default Descriptionc={Size}[b|k|m|g] dictSize*4 SetsChunksize
Ifyoudon'tspecifyChunkSize,LZMA2setsittomax(DictionarySize,min(256M,max(1M,DictionarySize*4))).
LZMA2alsosupportsallLZMAparameters,butlp+lccannotbelargerthan4.
LZMA2uses:1threadforeachchunkinx1andx3modes;and2threadsforeachchunkinx5,x7andx9modes.IfLZMA2issettouseonlysuchnumberofthreadsrequiredforonechunk,itdoesn'tsplitstreamtochunks.Soyoucangetdifferentcompressionratiofordifferentnumberofthreads.Youcangetthebestcompressionratio,whenyouuse1or2threads.
PPMd
PPMdisaPPM-basedalgorithm.ThisalgorithmismostlybasedonDmitryShkarin'sPPMdHsourcecode.PPMdprovidesverygood
![Page 92: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/92.jpg)
compressionratioforplaintextfiles.Thereisnodifferencebetweencompressionspeedanddecompressionspeed.Memoryrequirementsforcompressionanddecompressionalsoarethesame.
Parameter Default Descriptionmem={Size}[b|k|m|g] 24 SetssizeofusedmemoryforPPMd.o={Size} 6 SetsmodelorderforPPMd.
mem={Size}[b|k|m|g]
SetsthesizeofmemoryusedforPPMd.Youmustspecifythesizeinbytes,kilobytes,ormegabytes.Themaximumvalueis2GB=2^31bytes.Thedefaultvalueis24(16MB).Ifyoudonotspecifyanysymbolfromtheset[b|k|m|g],thememorysizewillbecalculatedas(2^Size)bytes.PPMdusesthesameamountofmemoryforcompressionanddecompression.
o={Size}
SetsthemodelorderforPPMd.Thesizemustbeintherange[2,32].Thedefaultvalueis6.
BCJ2
BCJ2isaBranchconverterfor32-bitx86executables(version2).Itconvertssomebranchinstructionsforincreasingfurthercompression.
ABCJ2encoderhasoneinputstreamandfouroutputstreams:
s0:mainstream.Itrequiresfurthercompression.
s1:streamforconvertedCALLvalues.Itrequiresfurthercompression.
s2:streamforconvertedJUMPvalues.Itrequiresfurthercompression.
s3:servicestream.Itisalreadycompressed.
IfLZMAisused,thesizeofthedictionaryforstreamss1ands2canbemuchsmaller(512KBisenoughformostcases)thanthedictionarysizeforstreams0.
Parameters:
![Page 93: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/93.jpg)
d={Size}[b|k|m|g]
SetssectionsizeforBCJ2filter.Defaultsectionsizeis64MB.Ifyoudonotspecifyanysymbolfromtheset[b|k|m|g],thesectionsizewillbecalculatedasSectionSize=2^Sizebytes.Thisparameterdoesn'taffectmemoryconsumption.Compressionratioisbetter,ifthesectionsizeisequalorslightlylargerthansizeoflargestexecutionsectioninfile.Example:f=BCJ2:d9M,iflargestexecutablesectioninfilesissmallerthan9MB.
Delta
It'spossibletosetdeltaoffsetinbytes.Forexample,tocompress16-bitstereoWAVfiles,youcanset"0=Delta:4".Defaultdeltaoffsetis1.
![Page 94: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/94.jpg)
XZXZsupportsonlyLZMA2codecnow.Theswitchesaresimilartoswitchesfor7zformat.
Parameter Default Descriptionx=[0|1|3|5|7|9] 5 Setslevelofcompression
f=FilterID Setscompressionfilter.FilterID:Delta:{N},BCJ,ARM,ARMT,IA64,PPC,SPARC
{N}={MethodID}[:param1][:param2][..]
LZMA2 Setscompressionmethod:LZMA2:[param1]:[param2]:[...]
mt=[off|on|{N}] on Setsmultithreadingmode
![Page 95: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/95.jpg)
WIM
Parameter Default Descriptionim={ImageNumber} Setsimagenumber.is=[off|on] off Showimagenumberinpaths.
Ifimagenumberisspecified,7-ZipworksonlywiththatimageinsideWIMarchive.Otherimageswillbenotchanged.Bydefault7-Zipdoesn'tshowimagenumber,ifthereisonlyoneimageinWIMarchive,orifimagenumberisspecified.Butiftheswitch"is"specified,7-Zipshowsimagenumber.
Examples7zaarchive.zip*.jpg-mx0
adds*.jpgfilestoarchive.ziparchivewithoutcompression.
7zaarchive.7z*.exe*.dll-m0=BCJ-m1=LZMA:d=21
adds*.exeand*.dllfilestosolidarchivearchive.7zusingLZMAmethodwith2MBdictionaryandBCJfilter.
7zaarchive.7za.tar-mf=BCJ2-mx
addsa.tarfilestoarchivearchive.7zusingBCJ2filter.
7zaarchive.7z*.wav-mf=Delta:4
adds*.wavfilestoarchivearchive.7zusingDelta:4filter.
7zaa.7z*.exe*.dll-m0=BCJ2-m1=LZMA:d25-m2=LZMA:d19-m3=LZMA:d19-mb0:1-mb0s1:2-mb0s2:3
adds*.exeand*.dllfilestoarchivea.7zusingBCJ2filter,LZMAwith32MBdictionaryformainoutputstream(s0),andLZMAwith512KBdictionaryfors1ands2outputstreamsofBCJ2.
7zaarchive.7z*.txt-m0=PPMd
adds*.txtfilestoarchivearchive.7zusingPPMdmethod.
7zaa.tar.xza.tar-mf=bcj-mx
![Page 96: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/96.jpg)
addsa.tarfilestoarchivea.tar.xzusingBCJfilter.
Commandsthatcanbeusedwiththisswitch
a(Add),h(Hash),d(Delete),rn(Rename),u(Update)
Seealso
Switches:-t(setTypeofarchive),
![Page 97: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/97.jpg)
-o(setOutputdirectory)switch
Specifiesadestinationdirectorywherefilesaretobeextracted.
Thisswitchcanbeusedonlywithextractioncommands.
Syntax-o{dir_path}
{dir_path}Thisisthedestinationdirectorypath.It'snotrequiredtoendwithabackslash.Ifyouspecify*in{dir_path},7-Zipsubstitutesthat*charactertoarchivename.
Example7zxarchive.zip-oc:\Doc
extractsallfilesfromthearchive.ziparchivetothec:\Docdirectory.
7zx*.zip-o*
extractsall*.ziparchivestosubfolderswithnamesofthesearchives.
Commandsthatcanbeusedwiththisswitch
e(Extract),x(Extractwithfullpaths)
![Page 98: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/98.jpg)
-p(setPassword)switch
Specifiespassword.
Syntax-p{password}
{password}Specifiespassword.
Examples7zaarchive.7z-psecret-mhe*.txt
compresses*.txtfilestoarchive.7zusingpassword"secret".Alsoitencryptsarchiveheaders(-mheswitch),sofilenameswillbeencrypted.
7zxarchive.zip-psecret
extractsallfilesfromarchive.zipusingpassword"secret".
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),e(Extract),rn(Rename),t(Test),u(Update),x(Extractwithfullpaths)
![Page 99: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/99.jpg)
-r(Recursesubdirectories)switch
Specifiesthemethodoftreatingwildcardsandfilenamesonthecommandline.
Syntax-r[-|0]
Switch Description-r Enablerecursesubdirectories.
-r- Disablerecursesubdirectories.Thisoptionisdefaultforallcommands.
-r0 Enablerecursesubdirectoriesonlyforwildcardnames.
Examples7zlarchive.zip*.doc-r-
listsall*.docfilesthatbelongtothearchivedrootdirectoryinthearchive.ziparchive.
7za-tziparchive.zip-rsrc\*.cppsrc\*.h
addsall*.cppand*.hfilesfromdirectorysrcandallit'ssubdirectoriestothearchive.ziparchive.
7zaarchive.7zfolder1\
addsallfilesfromdirectoryfolder1andallit'ssubdirectoriestothearchive.7zarchive.
7zaarchive.7z-rfolder2\
searchesallfolder2directoriesinallsubdirectories,andaddsthem(includingallsubdirectories)tothearchive.7zarchive.
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),e(Extract),h(Hash),l(List),rn(Rename),t(Test),u
![Page 100: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/100.jpg)
(Update),x(Extractwithfullpaths)
Seealso
Switches:-i(Include),-x(Exclude)
![Page 101: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/101.jpg)
-sa(setArchivenamemode)switch
SpecifiesArchivenamemode.
Syntax-sa[a|e|s]
Switch Description-saa Alwaysaddarchivetypeextension.-sae Useexactnamespecifiedincommand.
-sas Addextensiononlyifspecifiednamehasnoextension.It'sdefaultoption.
Examples7zaarc1.txt
createsarc.7z
7zaarc.spec1.txt
createsarc.spec
7zaarc1.txt-sae
createsarc
7zafile.pdffile.pdf-saa-tzip
createsfile.pdf.zip
Commandsthatcanbeusedwiththisswitch
a(Add),
![Page 102: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/102.jpg)
-scc(Setcharsetforconsoleinput/output)switch
Setscharsetforforconsoleinput/output.
Syntax-scc{UTF-8|WIN|DOS}
DefaultcharsetisDOS.
UTF-8UnicodeUTF-8characterset.
WINDefaultcharactersetofWindows.
DOSDOS(OEM)charactersetofWindows.
Example7zlarchive.7z-sccUTF-8
listsfilesfromarchive.7zinUTF-8encoding.
![Page 103: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/103.jpg)
-scs(Setcharsetforlistfiles)switch
Setscharsetforlistfiles.
Syntax-scs{UTF-8|UTF-16LE|UTF-16BE|WIN|DOS|{id}}
DefaultcharsetisUTF-8.
Value DescriptionUTF-8 UnicodeUTF-8characterset.UTF-16LE UnicodeUTF-16little-endiancharacterset.UTF-16BE UnicodeUTF-16big-endiancharacterset.WIN DefaultcharactersetofWindows.DOS DefaultDOS(OEM)charactersetofWindows.{id} Thecodepagenumber(asspecifiedinMicrosoftWindows).
Notes:ThelistfileinUnicodecharsetcanstartwiththeBOM(byteordermark)character(U+FEFF).Inthatcase7-ZipchecksthatencodingofBOMcorrespondstoencodingspecifiedwiththisswitch(forUTF-16LEandUTF-16BE).
compressesfilesfromlistfile.txtlist,thatcontainslistoffilesindefaultcharactersetofWindows.
compressesfilesfromlistfile.txtlist,thatcontainslistoffilesin1251(CyrillicWindows)codepage.
Commandsthatcanbeusedwiththisswitch
a(Add),u(Update)
![Page 104: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/104.jpg)
-scrc(Sethashfunction)switch
Setshashfunctionfor"extract"and"hash"commands.
Syntax[-scrc{Method}]
Supportedmethods:CRC32,CRC64,SHA1,SHA256,BLAKE2sp,*.DefaultmethodisCRC32.
Examples7zt-scrcSHA256archive.gz
testsarchivearchive.gzandcalculatedSHA-256fordecompresseddata.
7zh-scrcsha1*.iso
calculatesSHA-1for*.isofiles.
7zh-scrc*file.iso
calculateshashvaluesforfile.isofile.
Commandsthatcanbeusedwiththisswitch
h(Hash),e(Extract),x(Extractwithfullpaths)
![Page 105: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/105.jpg)
-sdel(Deletefilesaftercompression)switch
Syntax-sdel
If-sdelswitchisspecified,7-Zipdeletesfilesafterincludingtoarchive.Soitworkslikemovingfilestoarchive.
7-Zipdeletesfilesattheendofoperationandonlyifarchivewassuccessfullycreated.
Examples7zaa.7z*.txt-sdel
movestxtfilesfromdisk'sdirectorytoa.7zarchive.
Commandsthatcanbeusedwiththisswitch
a(Add)
![Page 106: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/106.jpg)
-seml(Sendarchivebyemail)switch
Sendsanarchivebye-mail.
Syntax-seml[.]
[.]Causesthearchivetobedeletedafterattachingacopyofittotheemailmessage.
Example7zaarchive.7z-semla.txt
compressesthea.txtfileandsendsitinarchive.7zbyemail.
Commandsthatcanbeusedwiththisswitch
a(Add),u(Update)
![Page 107: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/107.jpg)
-sfx(CreateSFXarchive)switch
Createsselfextractingarchive.
Syntax-sfx[{SFX_Module}]
{SFX_Module}
SpecifiestheSFXmodulethatwillbecombinedwiththearchive.Thismodulemustbeplacedinthesamedirectoryasthe7z.exe.If{SFX_Module}isnotassigned,7-ZipwillusestandardconsoleSFXmodule7zCon.sfx.
SFX_Module Description7z.sfx Windowsversion.7zCon.sfx Consoleversion.7zS.sfx Windowsversionforinstallers.7zSD.sfx Windowsversionforinstallers(usesMSVCRT.dll).
SFXmodulecanunpack7zarchiveor7zmultivolumearchive.Forexample,ifyouhavename.7zorname.7z.001archive,justrenamesfxmulduletoname.exeandplacetosamefolderwitharchive.
SFXmodulesforinstallers
SFXmodulesforinstallersareincludedinanexternalpackage(7z_extra).Youcandownloadthesemodulesfromwww.7-zip.org.SFXmodulesforinstallers(7zS.sfxand7zSD.sfx)allowyoutocreateyourowninstallationprogram.Suchamoduleextractsthearchivetotheuser'stempfolder,andrunsaspecifiedprogram,andremovesthetempfilesaftertheprogramfinishes.Aself-extractingarchiveforinstallersmustbecreatedasjoiningthefollowingfiles:SFX_Module,Installer_Config(optional),7z_Archive.Youcanusethefollowingcommandtocreateaninstallerself-extractingarchive:
copy/b7zS.sfx+config.txt+archive.7zarchive.exe
![Page 108: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/108.jpg)
Anoptimallysmallinstallationpackagesizecanbeachieved,iftheinstallationfilesareuncompressedbeforeincludingtheminthe7zarchive.
-yswitchforinstallermodulespecifiesquietmodeextraction.
InstallerConfigfileformat
ThisconfigfilecontainscommandsfortheInstaller.Thefilebeginswiththestring;!@Install@!UTF-8!andendswith;!@InstallEnd@!.ThefilemustbewritteninUTF-8encoding.Thefilecontainsanyorallthesestringpairs:
ID_String="Value"
ID_String DescriptionTitle TitleformessagesBeginPrompt BeginPromptmessageProgress Valuecanbe"yes"or"no".Defaultvalueis"yes".
RunProgramCommandforexecuting.Defaultvalueis"setup.exe".Substring%%Twillbereplacedwithpathtotemporaryfolder,wherefileswereextracted
Directory Directoryprefixfor"RunProgram".Defaultvalueis".\\"
ExecuteFile NameoffileforexecutingExecuteParameters Parametersfor"ExecuteFile"
Youmayomitanypair.
Therearetwowaystorunainstallationprogram:RunProgramandExecuteFile.UseRunProgram,ifyouwanttorunaprogramfromthe.7zarchive.UseExecuteFile,ifyouwanttoopenadocumentfromthe.7zarchive,orifyouwanttoexecuteacommandfromWindows.
IfyouuseRunProgram,andifyouspecifyemptydirectoryprefix:Directory="",thesystemsearchesfortheexecutablefileinthefollowingsequence:
1. Thedirectoryfromwhichtheapplication(installer)loaded.
2. Thetemporaryfolder,wherefileswereextracted.
![Page 109: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/109.jpg)
3. TheWindowssystemdirectory.
ConfigfileExamples;!@Install@!UTF-8!
Title="7-Zip4.00"
BeginPrompt="Doyouwanttoinstallthe7-Zip4.00?"
RunProgram="setup.exe"
;!@InstallEnd@!
;!@Install@!UTF-8!
Title="7-Zip4.00"
BeginPrompt="Doyouwanttoinstallthe7-Zip4.00?"
ExecuteFile="7zip.msi"
;!@InstallEnd@!
;!@Install@!UTF-8!
Title="7-Zip4.01Update"
BeginPrompt="Doyouwanttoinstallthe7-Zip4.01Update?"
ExecuteFile="msiexec.exe"
ExecuteParameters="/i7zip.msiREINSTALL=ALLREINSTALLMODE=vomus"
;!@InstallEnd@!
Examples7za-sfxa.exe*.txt
adds*.txtfilestoselfextractingarchivea.exeusingthedefaultconsoleSFXmodule.
7za-sfx7z.sfxa.exe*
addsallfilestoselfextractingarchivea.exewithmodule7z.sfxusingwindowsversionofSFXmudule.
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),u(Update),
![Page 110: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/110.jpg)
-si(readdatafromstdin)switch
Causes7-Ziptoreaddatafromstdin(standardinput)insteadoffromdiscfiles.
Syntax-si{file_name}
{file_name}Specifiesanamethatwillbestoredinthearchiveforthecompresseddata.Iffile_nameisnotspecified,datawillbestoredwithoutaname.
Note:Thecurrentversionof7-Zipsupportreadingofarchivesfromstdinonlyforxz,lzma,tar,gzipandbzip2archives.
Examples7zaarchive.gz-tgzip-siDoc2.txt<Doc.txt
compressesinputstreamfromfileDoc.txttoarchive.gzarchiveusingDoc2.txtfilename.
7zx7z905.tar.gz-so|7zx-si-ttar
decompressestar.gzarchive.
Commandsthatcanbeusedwiththisswitch
a(Add),e(Extract),h(Hash),u(Update),x(Extractwithfullpaths)
![Page 111: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/111.jpg)
-so(writedatatostdout)switch
Causes7-Ziptowriteoutputdatatostdout(standardoutputstream).
Syntax-so
Ifthe-soswitchisusedwiththecommandthatcreatesarchive,itworksonlywithsomearchiveformats:xz,gzip,bzip2andtar.
Examples7zxarchive.gz-so>Doc.txt
decompressesarchive.gzarchivetooutputstreamandthenredirectsthatstreamtoDoc.txtfile.
7zadummy-tgzip-soDoc.txt>archive.gz
compressestheDoc.txtfiletothe7-Zipstandardoutputstreamandwritesthatstreamtoarchive.gzfile.
Commandsthatcanbeusedwiththisswitch
a(Add),e(Extract),u(Update),x(Extractwithfullpaths)
![Page 112: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/112.jpg)
-slp(SetLargePagesmode)switch
SetsLargePagesmode.
Syntax-slp[-]
Switch Description-slp EnablesLargePagesmode.
-slp- DisablesLargePagesmode.Thisoptionisdefaultforallcommands.
LargePagesmodeincreasesthespeedofcompression.However,thereisapauseatthestartofcompressionwhile7-Zipallocatesthelargepagesinmemory.If7-Zipcan'tallocatelargepages,itallocatesusualsmallpages.Also,theWindowsTaskManagerdoesn'tshowtherealmemoryusageoftheprogram,if7-Zipuseslargepages.ThisfeatureworksonlyonWindows2003/XPx64.Also,itrequiresadministrator'srightsforyoursystem.TherecommendedsizeofRAMforthisfeatureis3GBormore.Toinstallthisfeature,youmustrunthe7-ZipFileManageratleastonce,closeit,andthenrebootthesystem.
Notes:ifyouuse-slpmode,yourWindowssystemcanhangforseveralsecondswhen7-zipallocatesmemoryblocks.WhenWindowstriestoallocatelargepagesfromRAMfor7-Zip,Windowscanhangothertasksforthattime.Itcanlooklikefullsystemhang,butthenitresumes,andifallocationissuccessful,7-Zipworksfaster.Don'tuse-slpmode,ifyoudon'twantothertasksbehangedforseveralseconds.Alsoit'ssenselesstouse-slpmodetocompresssmalldatasets(lessthan100MB).Butifyoucompressbigdatasets(300MBormore)withLZMAmethodwithlargedictionary,youcanget5%-10%speedimprovementwith-slpmode.
Example7zaarchive.7z-slpa.iso
compressesa.isofilewithLargePagesmodeswitchedon.
![Page 113: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/113.jpg)
-slt(Showtechnicalinformation)switch
Setstechnicalmodeforl(List)command.
Syntax-slt
Example7zl-sltarchive.7z
showsdetailedtechnicalinformationforthefilesinarchive.7z.
Commandsthatcanbeusedwiththisswitch
l(List)
![Page 114: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/114.jpg)
-sni(StoreNTsecurityinformation)switch
Syntax-sni
UsethisswitchtostoreandrestoreNT(NTFS)securityinformationforfilesanddirectories.NotethatonlyNTFSfilesystemsupportsthatfeature.
Currentversionof7-ZipcanstoreNTsecurityinformationonlytoWIMarchives.
Examples7zaa.wim-sni*.txt
storestxtfileswithNTsecurityinformation.
7zxa.wim-sni
unpacksa.wimandrestoresNTsecurityinformation.
Commandsthatcanbeusedwiththisswitch
a(Add),e(Extract),u(Update),x(Extractwithfullpaths)
Seealso
Switches:-sns
![Page 115: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/115.jpg)
-sns(StoreNTFSalternateStreams)switch
Syntax-sns[-]
Switch Description
-sns Enable"StoreNTFSalternatestreams"mode.It'sdefaultoption,ifyouextractarchive.
-sns- Disable"StoreNTFSalternatestreams"mode.It'sdefaultoption,ifyoucreatearchiveorcall"list"command.
If-snsmodeisenabled,7-ZipprocessesNTFSAlternateDataStreamsforfilesandfolders.
Currentversionof7-ZipcanstoreNTFSalternatestreamsonlytoWIMarchives.
Note:7-Zipcan'tincludealternatestreamstoarchiveson32-bitWindowsXPandoldersystems.
Examples7zaa.wim-sns*.txt
storestxtfilesincludingalternatedatastreams.
7zxa.wim
unpacksa.wimincludingalternatedatastreams.
7zxa.wim-sns-
unpacksa.wimwithoutalternatedatastreams.
7zla.wim-sns
listsfilesina.wimincludingalternatedatastreams.
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),e(Extract),h(Hash),l(List),t(Test),u(Update),x
![Page 116: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/116.jpg)
(Extractwithfullpaths)
Seealso
Switches:-sni
![Page 117: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/117.jpg)
-spf(Usefullyqualifiedfilepaths)switch
Switch Description-spf Useabsolutepathsincludingdriveletter.-spf2 Usefullpathswithoutdriveletter.
Enablesthemodethatallowstousefullyqualifiedfilepathsinarchives.If-spfswitchisnotspecified,7-Zipreducesfilepathstorelativepathswhenitaddsfilestoarchive,and7-Zipconvertspathstorelativepathswhenyouextractarchive.If-spfswitchisspecified,7-Zipdoesn'ttrytoprocessorconvertpaths.
Fullyqualifiedfilepathsbeginwithoneofthefollowing:
AUNCname,whichstartswithtwobackslashcharacters,forexample,"\\Server1\".
Adiskdesignatorwithabackslash,forexample"C:\".
Asinglebackslash,forexample,"\Folder".
If-spfswitchisspecified,butthepathisnotfullyqualified,7-Zipwillusespecifiedpath,itwillnotconvertthepathtofullyqualifiedpath.
Pleasebecareful,ifyouuse-spfswitchwith"extract"command.Checkthatfilenamesinarchivearecorrect.Notethatwith-spfswitch7-Zipcantrytorewriteanyfilewithpathspecifiedinarchive.
Syntax-spf
Examples7zaa.7z-spfc:\Files\test.txtd:\test.txt
storesbothtxtfileswithfullpaths.
7zxa.7z-spf
extractsfilesfroma.7zarchivewithexactfilepathsspecifiedinarchive.
![Page 118: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/118.jpg)
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),e(Extract),u(Update),x(Extractwithfullpaths)
Seealso
Switches:
![Page 119: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/119.jpg)
-ssc(SetSensitiveCasemode)switch
Setssensitivecasemodeforfilenames.
Syntax-scs[-]
Switch Description-ssc Setcase-sensitivemode.It'sdefaultforPosix/Linuxsystems.-ssc- Setcase-insensitivemode.It'sdefaultforWindowssystems.
Example7zaarchive.7zA*.txt-ssc-r
compressesallA*.txtfilesfromcurrentdirectoryandallit'ssubdirectories.Thatcommanddoesn'tcompressa*.txtfiles.
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),e(Extract),l(List),t(Test),u(Update),x(Extractwithfullpaths)
![Page 120: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/120.jpg)
-ssw(Compressfilesopenforwriting)switch
Compressesfilesopenforwritingbyanotherapplications.Ifthisswitchisnotset,7-zipdoesn'tincludesuchfilestoarchive.
Syntax-ssw
Example7zaarchive.7z-ssw*.txt
compressesall*.txtfilesincurrentfolderincludingfilesopenforwritingbyanotherapplications.
Commandsthatcanbeusedwiththisswitch
a(Add),h(Hash),u(Update)
![Page 121: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/121.jpg)
-stl(Setarchivetimestampfromthemostrecentlymodifiedfile)switch
Syntax-stl
If-stlswitchisspecified,7-Zipsetstimestampforarchivefileastimestampfromthemostrecentlymodifiedfileinthatarchive.
Examples7zua.7z-stl*.txt
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),rn(Rename),u(Update)
![Page 122: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/122.jpg)
-stx(Excludearchivetype)switch
Theswitchdisablesthecoderelatedtospecifiedarchivetypeandanarchivecannotbeopenwithspecifiedarchivetype.
Multiple-stxswitchesaresupported.
Syntax-stx{archive_type}
{archive_type}Specifiesthetypeofarchive.Itcanbe:7z,xz,split,zip,gzip,bzip2,tar,....
Example7zx-stxpearchive.exe
extractsfilesfromarchive.exearchiveanddoesn'tusePEformathandler.
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),e(Extract),l(List),t(Test),u(Update),x(Extractwithfullpaths)
![Page 123: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/123.jpg)
-t(setTypeofarchive)switch
Specifiesthetypeofarchive.
Syntax-t{archive_type}[:s{Size}][:r][:e][:a]
{archive_type}Specifiesthetypeofarchive.Itcanbe:*,#,7z,xz,split,zip,gzip,bzip2,tar,....
*:rDefaultmode.7-Zipopensarchiveandsubfile,ifit'ssupportedbyformat.
*Opensonlyonetoplevelarchive.
*:s{Size}[b|k|m|g]Setsupperlimitforstartofarchiveposition.Defaultscansizeis4MBytes"*:s4m".Example:"*:s0"meansthatitwillopenonlyfilethathasnoanystubbeforearchive.
#OpensfileinParsermode,andignoresfullarchives.
#:aSameas*,butitopensfileswithunknownextensionsthatcontainarchivesinParserMode.
#:eOpensfileinParsermodeandchecksallbytepositionsasstartofarchive.
If-t{archive_type}switchisnotspecified,7-Zipusesextensionofarchivefilenametodetectthetypeofarchive.Ifyoucreatenewarchive,-
![Page 124: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/124.jpg)
t{archive_type}switchisnotspecifiedandthereisnoextensionofarchive,7-Zipwillcreate.7zarchive.
If-t{archive_type}switchisnotspecifiedandarchivenamecontainsincorrectextension,theprogramwillshowthewarning.
It'spossibletousethecombinedtype(forexample,mbr.vhd)for"Extract"and"List"commandsforsomearchives.
Whenyouextractarchiveofsometypesthatcontainsanotherarchivewithoutcompression(forexample,MBRinVHD),7-Zipcanopenbothlevelsinonestep.Ifyouwanttoopen/extractjusttoplevelarchive,use-t*switch.
Note:xz,gzipandbzip2formatssupportonlyonefileperarchive.Ifyouwanttocompressmorethanonefiletotheseformats,createatararchiveatfirst,andthencompressitwithyourselectedformat.
Example7za-tziparchive.zip*.txt
addsall*.txtfilesfromcurrentdirectorytoziparchivearchive.zip.
7zt-t7z.splitarchive.7z.001
testsallfilesinarchive.7z.001.Italsochecksthatarchiveismultivolume.7zarchive.
7zx-t#sfxarchive.exe
extractssfxarchive.exeinparsermode.
7zx-tisoarchive.iso
extractsfilesfromarchive.isoopenasISOarchive.
7zx-tudfarchive.iso
extractsfilesfromarchive.isoopenasUDFarchive.
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),e(Extract),l(List),t(Test),u(Update),x(Extractwith
![Page 125: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/125.jpg)
fullpaths)
![Page 126: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/126.jpg)
-u(Updateoptions)switch
Specifieshowtoupdatefilesinanarchiveand(or)howtocreatenewarchives.
Syntax-u[-]<action_set>[!{new_archive_name}]
<action_set>::=<state_action>...
<state_action>::=<state><action>
<state>::=p|q|r|x|y|z|w
<action>::=0|1|2|3
Parameters
dash(-)
Disablesanyupdatesinthebasearchive.
Thetermbasearchivemeansthearchiveassignedby"base_archive_name"onthecommandline.SeeCommandlinesyntaxformoredetails.
{new_archive_name}
Specifiesthepathnameofthenewarchivetobecreated.Alloptionsinthisswitchwillrefertothisnewarchive.
Ifnotassigned,thenalloptionsinthisswitchwillrefertothebasearchiveofthecommand.
<state>
Specifiesthestateofaparticularfiletobeprocessed.
<state>::=p|q|r|x|y|z|w
Foreachuniquefilenamethereare6variantsofstate:
![Page 127: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/127.jpg)
<state> Statecondition FileonDisk FileinArchive
p Fileexistsinarchive,butisnotmatchedwithwildcard. Exists,butis
notmatched
q Fileexistsinarchive,butdoesn'texistondisk. Doesn'texist Exists
r Filedoesn'texistinarchive,butexistsondisk. Exists Doesn'texist
x Fileinarchiveisnewerthanthefileondisk. Older Newer
y Fileinarchiveisolderthanthefileondisk. Newer Older
z Fileinarchiveissameasthefileondisk Same Same
wCannotbedetectedwhatfileisnewer(timesarethesame,sizesaredifferent)
? ?
<action>
Specifiestheactionforagiven<state>.
<action>::=0|1|2|3
Foreachstateyoucanspecifyoneofthethreevariantsofactions:
<action> Description0 Ignorefile(don'tcreateiteminnewarchiveforthisfile)1 Copyfile(copyfromoldarchivetonew)2 Compress(compressfilefromdisktonewarchive)
3CreateAnti-item(itemthatwilldeletefileordirectoryduringextracting).Thisfeatureissupportedonlyin7zformat.
Remarks
Anyupdatecommand(suchasa(Add),d(Delete),u(Update))canbeassignedintheseterms.
![Page 128: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/128.jpg)
Thefollowingtableshowsactionsetsforupdatecommands.
command\<state> p q r x y z wd(Delete) 1 0 0 0 0 0 0a(Add) 1 1 2 2 2 2 2
u(Update) 1 1 2 1 2 1 2Freshen 1 1 0 1 2 1 2
Synchronize 1 0 2 1 2 1 2
Ifyoudon'tspecifya!{new_archive_name}option,thenalloptionswillrefertothemainarchive(thearchiveassignedonthecommandlineafterthe7zcommand).Ifyouspecify!{new_archive_name}option,then7-Zipalsowillcreateanewarchivewiththespecifiednameandalloptionswillrefertothatnewarchive.
Multipleupdateswitchesaresupported.7-Zipcancreateanynumberofnewarchivesduringoneoperation.
Bydefault,theactionsetforeachnewarchiveisassignedastheactionsetofthemaincommand.Thereare3differentactionsetsforcommands:a(Add),d(Delete),u(Update).Youcanoverloadany<state_action>pair.
Timezonenotes
Ifyouchangetimezone(whenyoumoveyourcomputertoanothertimezoneorifthereareclockchangesfordaylightsavinginyourzone),youcanhavesomeproblemswithupdatecommandsthatdependfromfile'smodificationtime.It'sstronglyrecommendedtouseonlyfilesystemthatusesCoordinatedUniversalTime(UTC)andarchiveformatthatalsousesUTC.Inthatcaseyouwillhavenoproblemswithtimezonechanges.Alsoit'srecommendedtouseonlyUTCformatsinothercases,forexample,ifyousendfilestosomeoneinanothertimezone.
Alsoinsomecasestherearenoproblems,ifbothfilesystemandarchiveformatuselocaltime,forexample,FATfilesystemandZIPformat.
UTCfilesystems:NTFS
UTCarchiveformats:.zipwith-mtcswitch,7z,tar,gzip2,iso,wim
![Page 129: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/129.jpg)
Localtimefilesystems:FAT,FAT32
Localtimearchiveformats:rar,zip,cab
Examples7zuc:\1\exist.7z-u--up0q3x2z0!c:\1\update.7z*
createsanewarchiveupdate.7zandwritestothisarchiveallfilesfromcurrentdirectorywhichdifferfromfilesinexist.7zarchive.exist.7zarchivewillnotbechanged.
7zuc:\1\exist.7z-up0q3x2z0!c:\1\update.7z*-ms=off
createsanewarchiveupdate.7zandwritestothisarchiveallfilesfromthecurrentdirectorywhichdifferfromfilesinexist.7zarchive.
Note:theupdatingofsolid.7zarchivescanbeslow,sinceitcanrequiresomerecompression.
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),rn(Rename),u(Update),
![Page 130: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/130.jpg)
-v(CreateVolumes)switch
Specifiesvolumesizes.
Syntax-v{Size}[b|k|m|g]
{Size}[b|k|m|g]SpecifiesvolumesizeinBytes,Kilobytes(1Kilobyte=1024bytes),Megabytes(1Megabyte=1024Kilobytes)orGigabytes(1Gigabyte=1024Megabytes).ifyouspecifyonly{Size},7-zipwilltreatitasbytes.
It'spossibletospecifyseveral-vswitches.
NOTE:Pleasedon'tusevolumes(anddon'tcopyvolumes)beforefinishingarchiving.7-Zipcanchangeanyvolume(includingfirstvolume)attheendofarchivingoperation.
Examples7zaa.7z*.txt-v10k-v15k-v2m
createsmultivolumea.7zarchive.Firstvolumewillbe10KB,secondwillbe15KB,andallotherswillbe2MB.
Commandsthatcanbeusedwiththisswitch
a(Add),
![Page 131: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/131.jpg)
-w(setWorkingdirectory)switch
Setstheworkingdirectoryforthetemporarybasearchive.Bydefault,7-Zipbuildsanewbasearchivefileinthesamedirectoryastheoldbasearchivefile.Byspecifyingthisswitch,youcansettheworkingdirectorywherethetemporarybasearchivefilewillbebuilt.Afterthetemporarybasearchivefileisbuilt,itiscopiedovertheoriginalarchive;then,thetemporaryfileisdeleted.
Syntax-w[{dir_path}]
{dir_path}
Specifiesthedestinationdirectorypath.It'snotrequiredthatapathendwithabackslash.
If<dir_path>isnotassigned,then7-ZipwillusetheWindowstemporarydirectory.
Example7za-tziparchive.zip*.cpp-wc:\temp
adds*.cppfilestothearchive.ziparchive,creatingatemporaryarchiveinc:\tempfolder.
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),rn(Rename),u(Update),
![Page 132: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/132.jpg)
-x(Excludefilenames)switch
Specifieswhichfilenamesorwildcardednamesmustbeexcludedfromtheoperation.
Multipleexcludeswitchesaresupported.
Syntax-x[<recurse_type>]<file_ref>
<recurse_type>::=r[-|0]
<file_ref>::=@{listfile}|!{wildcard}
See-i(Include)switchdescriptionforinformationaboutoptionparameters.
Examples7za-tziparchive.zip*.txt-x!temp.*
addstothearchive.zipall*.txtfiles,excepttemp.*files.
7zaarchive.7zFolder1\-xr!*.png
addstothearchive.7zallfilesfromFolder1anditssubfolders,except*.pngfiles.
Commandsthatcanbeusedwiththisswitch
a(Add),d(Delete),h(Hash),e(Extract),l(List),t(Test),rn(Rename),u(Update),x(Extractwithfullpaths)
Seealso
Switches:-r(Recurse),-i(Include)
![Page 133: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/133.jpg)
-y(assumeYesonallqueries)switch
Disablesmostofthenormaluserqueriesduring7-Zipexecution.Youcanusethisswitchtosuppressoverwritequeriesinthee(Extract)andx(Extractwithfullpaths)commands.
Syntax-y
Examples7zxsrc.zip-y
extractsallfilesfromsrc.ziparchive.Alloverwritequerieswillbesuppressedandfilesondiskwithsamefilenamesasinarchivewillbeoverwritten.
Commandsthatcanbeusedwiththisswitch
e(Extract),x(Extractwithfullpaths)
Seealso
Switches:-ao(Overwritemode),
![Page 134: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/134.jpg)
MenuItemsNote:'Grey'referstothenumerickeypad.
File
Menuitem Shortcut Description
System Submenuwithmenucommandsfromsystemshell
Open Enter OpencurrentitemOpenInside Ctrl+PgDn Opencurrentitemasfolderinside7-ZipOpenOutside Shift+Enter OpencurrentiteminnewwindowView F3 OpenselecteditemwithviewerEdit F4 OpenselecteditemwitheditorRename F2 RenameselecteditemCopyTo... F5 CopyselecteditemsMoveTo... F6 MoveselecteditemsDelete Delete DeleteselecteditemsSplitfile... SplitfiletopartsCombinefiles... CombinefilestoonefileProperties Alt+Enter ShowPropertiesoffileComment Ctrl+Z SetcommentforfileCalculatechecksum CalculatesCRCchecksumforfiles
Diff ShowthedifferencesbetweentwofilesLink... CreatesymboliclinkorhardlinkCreateFolder F7 CreatenewfolderCreateFile Shift+F4 CreatesnewfileExit Alt+F4 Closestheprogram.
Edit
MenuItem Shortcut Description
![Page 135: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/135.jpg)
SelectAll Shift+[Grey+]
Selectallitems
DeselectAll Shift+[Grey-] Selectallitems
InvertSelection [Grey*] Select/Deselectallitems
Select... [Grey+] SelectspecifieditemsDeselect... [Grey-] DeselectspecifieditemsSelectbyType
Alt+[Grey+]
Selectallitemswiththesameextensionascurrentitem
DeselectbyType
Alt+[Grey-]
Deselectallitemswiththesameextensionascurrentitem
View
MenuItem Shortcut Description
LargeIcons Ctrl+1 Displaysitemsbyusinglargeicons
SmallIcons Ctrl+2 Displaysitemsbyusingsmallicons
List Ctrl+3 Displaysitemsinalist
Details Ctrl+4 Displaysitemsinalistwithdetailedinformationabouteachitem
Name Ctrl+F3 SortitemsbyNameType Ctrl+F4 SortitemsbyTypeDate Ctrl+F5 SortitemsbyDateSize Ctrl+F6 SortitemsbySizeUnsorted Ctrl+F7 DonotsortitemsFlatView SwitchFlatviewmodeforlistoffiles2Panels F9 SwitchOn/OffsecondpanelToolbars MenuitemsfortoolbarshandlingOpenRootFolder
\ Openrootcomputerfolder
![Page 136: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/136.jpg)
UpOneLevel
Backspace Openthefolderonelevelup
FoldersHistory... Alt+F12 Openfoldershistory
Refresh Ctrl+R RefreshitemslistAutoRefresh
If"AutoRefresh"isenabled,7-Zipreloadslistoffiles,iftherearechangesinfilesondrive.
Tools
MenuItem Shortcut DescriptionOptions... OpenOptionsdialogbox
Benchmark Measuretheperformanceofyourcomputerwith7-ZipLZMAbenchmark
Favorites
MenuItem Shortcut DescriptionAddfoldertoFavoritesas Addsfoldertofavorities
Help
MenuItem Shortcut DescriptionContents... F1 Opens7-ZipHelpAbout7-Zip... OpensAboutdialogbox
![Page 137: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/137.jpg)
Miscellaneouscommands
Shortcut DescriptionTab SwitchbetweenpanelsInsert Select/DeselectcurrentitemShift+F10 DisplaytheshortcutmenufortheselecteditemsRightCtrl+0Alt+0...RightCtrl+9Alt+9
Openfolderbookmark
Shift+RightCtrl+0Shift+Alt+0...Shift+RightCtrl+9Shift+Alt+9
Createsfolderbookmark
Alt+F1 EdittheFolderAddressonleftpanelAlt+F2 EdittheFolderAddressonrightpanelCtrl+[Grey+] AdjustoptimalcolumnwidthforitemsAlt+Up OpensamefolderinotherpanelAlt+Left,Alt+Right Opencurrentfolderinotherpanel
![Page 138: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/138.jpg)
KeyboardShortcuts
Key Normal Ctrl Alt Shift
Tab Switchpanel
F1 Help LeftPathF2 Rename RightPathF3 View SortbyNameF4 Edit SortbyType Exit CreateFileF5 Copy SortbyDateF6 Move SortbySize
F7 CreateFolder Unsorted
F9 1/2Panels
F10 Menu ShortcutMenu
F12 FoldersHistory
0-9 R:FolderBookmark
FolderBookmark
A SelectAllN CreateFileR RefreshZ Comment
BackspaceUpOneLevel
Enter Open Properties Openoutside
Insert SelectItemDelete DeleteItemPageDown OpenInside
PageUp UpOneLevelOpensame
![Page 139: 7-Zip · 7z Format 7z is a new archive format, providing a high compression ratio. The main features of the 7z format: Open architecture High compression ratio](https://reader034.vdocuments.site/reader034/viewer/2022042605/5f5ae2464ce60631f63d9ebc/html5/thumbnails/139.jpg)
Up folder
Left Opencurrentfolder
Right Opencurrentfolder
\ OpenrootGrey/ OpenrootGrey* SelectAllGrey+ Select Adjustcolumns SelectbyType SelectAll
Grey- Deselect DeselectbyType DeselectAll