Skip to content

UNP: Now extract any archives without any worries

Many of us may know how to extract a .Tar.gz file. But how many of us know how to extract a .bz2, .lz, etc files. Some extra option to tar will do the needfull, but we will need to know the options for each type of archive.

But no worries any more. You can now use ‘unp‘, a script that extract any type of archive by itself.
To extract any archive just type:

$ unp archive_file
where "archive_file" can be a rar, zip, tar.gz, deb,
tar.gz2, rpm or any other archive.

The best thing is that you can use unp to extract multiple types of archives at the same time.

$ unp *.tar *.tar.gz * *.rpm *.deb *.zip *.rar

To extract all the archive files in the current directory:

$ unp *

Install unp

$ sudo apt-get install unp

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.