Skip to content

Unsqueeze options

Every option unsqueeze reads, and unzip when squeeze has taken over unzip. This page is made from the same table as unsqueeze -h2, so the two always agree.

Options come before the archive's name, as with Apple's unzip. After the name come the files to unpack, -x and the files to leave out, and -d and the folder to unpack into.

Archives

Unpacking 7z, Apple Archive, RAR, tar and others, and unpacking safely. unsqueeze -h archives.

Option Value What it does
-Wo
--write-over
--writeo
on\|off write over files that exist
-Ws
--write-skip
--writes
on\|off skip files that exist
-Wn
--write-new-name
--writen
on\|off give a new name ("photo 2.jpg") where one is taken
-Wf
--write-folders
--write-dirs
--writef
--writed
on\|off make folders that do not exist
--comments-on-unpack show\|file\|both show comments, keep their file, or both
--ignore-space-constraints unpack whatever the free space
--ignore-ratio-constraints unpack whatever the growth
--leave-out-macosx on\|off leave out Finder's __MACOSX folder
--least-free-space size the least free space to leave
--largest-growth ratio the largest growth allowed
--unzip-options =options unzip's options added to every command

Apple unzip's options

Every option of Apple's unzip, as unsqueeze reads it: for a zip without a strong password, Apple's unzip does the work, exactly as before. Options marked Differs work differently for other archives, as each says. unsqueeze -h unzip shows Apple's own help.

Option Value What it does
-a convert text files' line endings
-b treat every file as binary
-c show files on screen, with their names
-d folder Unpacks into this folder, made when missing. It may come before or after the archive's name.
-e unpack (the usual action)
-f replace older files only, never adding
-j unpack without folders
-l list the archive
-n Never writes over a file that exists. On QwikSqueeze's path it becomes -Ws, which fills in only what is missing; handed to Apple unzip it stays unzip's own. Differs
-o Writes over files that exist. On QwikSqueeze's path (7z, Apple Archive, RAR, tar, and zips Apple unzip cannot open) it becomes -Wo; handed to Apple unzip it stays unzip's own. Differs
-p send files to standard output
-P password The password, on the command line, where ps and the shell's history can show it. Also opens a 7z, an Apple Archive .aea, or a zip with an AES password. Differs
-q quiet; -qq quieter
-t test the archive
-T date the archive as its newest file
-u replace older files and add new ones
-v a verbose listing; alone, the version
-x patterns leave out these files (after the archive's name)
-z Shows the archive's comment, and the comments squeeze -c and -z keep in a 7z or Apple Archive. Differs
-B keep a backup of a file written over
-C match names ignoring case
-D do not restore the files' dates
-K Keeps setuid, setgid and sticky bits. Refused when run with sudo, as such files from an archive are a back door. Differs
-L lowercase names from upper-case-only systems
-M page the output, as more does
-U unzip only: Unicode name handling
-X restore owners and groups
-Z zipinfo mode (first on the line)
-: allow names that climb out of the folder
-^ allow control characters in names

Zipinfo

unsqueeze -Z, as unzip -Z: a detailed listing of an archive. unsqueeze -h zipinfo.

Option Value What it does
-1 names only
-2 names only, with header and totals
-s short listing, as ls -l
-m medium listing, with compression
-l long listing, with sizes
-v verbose listing
-h the header line
-t the totals line
-T sortable dates
-z the archive's comment
-M page the output
-C match names ignoring case
-Z zipinfo mode

Settings

Shared by squeeze and unsqueeze. See also the settings file. unsqueeze -h settings.

Option Value What it does
--replace-zip Puts links in /usr/local/bin so that zip runs squeeze and unzip runs unsqueeze. Needs sudo, and every condition to hold; sudo squeeze --restore-zip gives them back.
--restore-zip give zip and unzip back to Apple (with sudo)
--defaults show the built-in defaults
--fix-config Makes ~/.qwiksqueezeconfig when there is none; otherwise puts back every setting that is missing or only commented out, at its starting value, never changing a value already there, and lays the file out afresh.
--settings show every setting
--settings-reset put every setting back at its starting value
--set name=value change one setting
--reset name put one setting back at its starting value
--explain show every value used and where it came from

Misc

unsqueeze -h misc.

Option Value What it does
--uninstall remove QwikSqueeze's command line tools (with sudo)
-V
--version
--VERSION
the version

Help

Option Value What it does
-h this help; -hh with every detail
--help this help
--help-detail
--more-help
this help with every detail