Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a zip file that contains another type of archive (in this case, a jee app server WAR file, but this happens with other contained archive types as well). When I unzip the zip file, instead of presenting me with the contained .war file, the war file is decompressed as well. Is there a way around this? I've tried with 'The Unarchiver', 'Archive Utility', and the command line 'unzip' utility.

share|improve this question
Did you try with 7-Zip? – user3463 Jul 2 '10 at 5:04
up vote 20 down vote accepted

Open the Archive Utility (/System/Library/CoreServices/Archive Utility), open its preferences (in the Archive Utility > Preferences menu), and uncheck the "Keep expanding if possible" option.

p.s. If you want to get at these prefs easily (e.g. if you want to be able to switch this setting on & off at whim), you can install the Archive Utility prefs into System Preferences by opening the Archive Utility package (right-click or control-click on the application, and select Show Package Contents), then navigate to Contents/Resources, and double-click Archives.prefPane to install it.

share|improve this answer
Neat, had no idea there was a hidden prefPane – ghoppe Jul 2 '10 at 16:20
Nor did I. Great tip man! – peelman Jul 3 '10 at 3:17
Bizarre and good to know +1 – Dan Rosenstark Oct 5 '10 at 21:29

IMHO the command line unzip tool should just unzip the specified file. It should not unpack double-zipped files.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .