MacOS – Alternatives to command line unzip

macosscriptterminalzip

I've found that the command line unzip tool doesn't gracefully handle some of the files I'm unzipping: it makes a bunch of junk directories, and creates files whose resource forks aren't found. (Perhaps they were created strangely.)

$ unzip -d NEW-DIRECTORY ZIP

Anyways, using Archive Utility is a start, because I can run the following and it is close (and it doesn't mess up my files):

$ open -a "Archive Utility" ZIP

But this does not allow me to specify a new directory for the contents!! It automatically puts them in the current directory. 😛

What are my alternatives?

Best Answer

The Unarchiver has a beta version of their command line utility available on their downloads page.