Home > 7z > 7z a {{archived.7z}} {{path/to/file}}

7z(1) a {{archived.7z}} {{path/to/file}}
A file archiver with highest compression ratio

Examples

7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on archive.7z dir1 adds all files from directory "dir1" to archive archive.7z using "ultra settings"
-t7z 7z archive
-m0=lzma lzma method
-mx=9 level of compression = 9 (Ultra)
-mfb=64 number of fast bytes for LZMA = 64
-md=32m dictionary size = 32 megabytes
-ms=on solid archive = on
7z a -sfx archive.exe dir1 add all files from directory "dir1" to SFX archive archive.exe (Remark : SFX archive MUST end with ".exe")
7z a -mhe=on -pmy_password archive.7z a_directory add all files from directory "a_directory" to the archive "archive.7z" (with data and header archive encryption on)

Tips or Questions?

More Commands:

7z
7z -mhe
7z -ms
7z i

Powered by ExplainShell