Using Archive Utility.app from Terminal

Joined
Nov 6, 2007
Messages
5
Reaction score
0
Points
1
Hi there!

Does anybody know if it is possible to send commands or options to Archive Utility.app via Terminal?

It is possible to invoke Archive Utility.app and pass it the path to a zip file, and it will uncompress it. However, I would like to also pass it a destination path, and see what other options it may have.

Thanks in advance!
:)

davewg
 
Joined
Mar 30, 2004
Messages
4,744
Reaction score
381
Points
83
Location
USA
Your Mac's Specs
12" Apple PowerBook G4 (1.5GHz)
The unzip command is what you're looking for.

For a list of options, type man unzip in the terminal.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
If it is a gunzipped tarball (.tar.gz), I use this command:
Code:
tar -zxvf <filename>
If it is a bunzipped tarball (.tar.bz), I use the following:
Code:
tar -xjvf <filename>

This is in case it's not a zip file you're trying to decompress.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top