Skip to content

How-to

Nine short examples, from the simplest command to scripts that run every night. Each shows a real Terminal window: the commands, and exactly what the tools print.

# Example You'll learn
1 Squeeze a folder squeeze backup Documents: no options needed.
2 Unpack an archive List, unpack, and fill in only what's missing, safely.
3 Zip, as you always have Plain zips are still Apple's.
4 A password that protects AES-256 for zips, and 7z with hidden names.
5 Photos for email --img: smaller photos, beside the originals.
6 A folder of PDFs --pdf: smaller PDFs, and what's left alone.
7 Choose fastest or smallest -Z fastest, -Z smallest, and the formats behind them.
8 Make it yours with settings --settings, --set and SQUEEZEOPT.
9 Scripts and scheduled jobs Passwords from a file, quiet output, exit codes, cron.

In the windows, % is Terminal's prompt; type what follows it. Passwords you type are never shown, as in Terminal.