Bash function for extract: .zip, .rar, .bz2, .gz, .tar, .tbz2, .tgz, .Z, .7z, .xz, .exe, .tar.bz2, .tar.gz, .tar.xz
Switch branches/tags
Latest commit d475e0c Jun 30, 2017 @xvoland Merge branch 'dev'
* dev:
  fix return code
Failed to load latest commit information.
LICENSE add LICENSE file Dec 9, 2016 update Feb 15, 2017 fix return code Jun 30, 2017

Command/function extract in your console

What’s a good way to extract: .zip, .rar, .bz2, .gz, .tar, .tbz2, .tgz, .Z, .7z, .xz, .exe, .tar.bz2, .tar.gz, .tar.xz, .arj, .cab, .chm, .deb, .dmg, .iso, .lzh, .msi, .rpm, .udf, .wim, .xar files on the Mac or Linux?

The goal is to make extract able to extract anything you give it. The command extract uses the free unpackers to support many older, obscure formats like this: .zip, .rar, .bz2, .gz, .tar, .tbz2, .tgz, .Z, .7z, .xz, .exe, .tar.bz2, .tar.gz, .tar.xz, .arj, .cab, .chm, .deb, .dmg, .iso, .lzh, .msi, .rpm, .udf, .wim, .xar

How to install (Mac OS X)

Mac OS X

Copy&Paste function into file ~/.bash_profile

Ubuntu / *nix

Copy&Paste function into file ~/.bashrc

I use hosting

My hosting here

How it use

Using command extract, in a terminal

$ extract <archive_filename.extention>

$ extract <archive_filename_1.extention> <archive_filename_2.extention> <archive_filename_3.extention> ...

Donate a beer

You are more than welcome to donate me some beer money :)

Click here to lend your support to Extractor and make a donation!


Author Vitalii Tereshchuk. © 2013, MIT license. Or welcome to my YouTube channel