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 *.tar.bz *.rpm *.deb *.zip *.rar
To extract all the archive files in the current directory:
$ unp *
$ sudo apt-get install unp