7. Choose fastest or smallest¶
-Z chooses for you, by what matters most:
% squeeze -Z fastest quick Documents/Notes
squeeze: -Z fastest chose an Apple Archive with LZ4: creating quick.aar
squeeze: quick.aar was created: 60 files, 22.4 MB squeezed to 14.3 MB, saving 36%.
% squeeze -Z smallest small Documents/Notes
squeeze: -Z smallest chose a 7z archive with LZMA2 at level 9: creating small.7z
squeeze: small.7z was created: 60 files, 22.4 MB squeezed to 5.8 MB, saving 74%.-Z |
Starts as | When to use it |
|---|---|---|
fastest (or f) |
An Apple Archive with LZ4 | Speed above all, such as a quick copy to another Mac. |
balanced (or b), and no -Z at all |
A 7z with LZMA2 at level 1 | Most things: small, and quick to make and open. |
smallest (or s) |
A 7z with LZMA2 at level 9 | Archives you'll keep or send, when time doesn't matter. |
Each is a setting, so you can make them mean what suits you: see 8. Make it yours with settings and the compression methods.
Archives for Windows and Linux¶
An Apple Archive opens only on Apple devices. Turn on portable-archives, and fastest, balanced and smallest make only 7z or zip, which open on Windows and Linux too:
squeeze --portable-archives -Z fastest photos Photos
Naming the method yourself¶
You can also name the format and method exactly: -Z 7z, -Z aar:lzfse, -Z deflate. And a level from 0 to 9, as with zip: -9. See the archive options.