Tuesday, August 18, 2015

macos - Universal command line unarchiving tool on a Mac



Is there some command line tool which allows extracting files from most known archive types? Something like StuffIt Expander, but without gui.


Answer



The Unarchiver has two command line utilities since version 2.5 according to the website:





Supported file formats include Zip, Tar-GZip, Tar-BZip2, RAR, 7-zip, LhA, StuffIt and many other more and less obscure formats. [..] If you have a compressed file that The Unarchiver does not open, please post a bug on the bug tracker, and include the file in question, and I will look into whether it is possible to add support for it!



[..]



There are now two command-line utilities available, unar and lsar, which can be used to unpack and list archives, respectively. They are still in development and not really feature-complete, but they should work. These are available as precompiled binaries for both OS X and Windows on the download page, and can also be built on Linux.




To download the command line tools (not included in the regular The Unarchiver download!), go to the project's google code downloads page and select unar0.2.zip (works as of September 20, 2010).


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...