Two more universal decompressors

One other small note today: A while back I mentioned atool, as a universal unpacker — a kind of wrapper for four or five or more different decompression programs. In reply someone mentioned unp, and then a while later I found dtrx.

I feel obligated to mention the other two now, since I made note of the first. The sad part is, not a one of them — not even atool — has much to show. So no screenshots today. šŸ˜¦

And they all work equally well, although dtrx by default seems quieter than the other two. I gave each one a quick turn at the same compressed file, and I found no problems.

I should expect as much though, since not a one of them probably actually does anything aside from invoke the appropriate decompressor. It’s those underlying applications that would be at fault, if there was a problem.

Which means the question of which one to use becomes academic: Do you want to type out u-n-p, d-t-r-x or a-t-o-o-l? three letters, four letters or five?

Oh, but then command completion messes everything up. … šŸ™„ šŸ™‚


7 thoughts on “Two more universal decompressors

  1. Tom

    Do all four of these tools support the same types of compressed files, or are some more comprehensive than others?

  2. gogi-goji

    I just have a little bit of code in my .bashrc (I think I stole it from someone else) to deal with decompressing files.

    # Automagically choose the right command to extract an archive
    # Syntax: extract *compressedfile*
    extract () {
       if [ -f $1 ] ; then
              case $1 in
                  *.tar.bz2)   tar xvjf $1    ;;
                  *.tar.gz)    tar xvzf $1    ;;
                  *.bz2)       bunzip2 $1     ;;
                  *.rar)       unrar x $1     ;;
                  *.gz)        gunzip $1      ;;
                  *.tar)       tar xvf $1     ;;
                  *.tbz2)      tar xvjf $1    ;;
                  *.tgz)       tar xvzf $1    ;;
                  *.zip)       unzip $1       ;;
                  *.Z)         uncompress $1  ;;
                  *.7z)        7z x $1        ;;
                  *)           echo "don't know how to extract '$1'..." ;;
              echo "'$1' is not a valid file!"
  3. x33a

    I like to manually issue the command according to the file type. This way i won’t forget the syntax, for times when these combined utilities aren’t available.

    But, i must agree these things are convenient, and if someone cares to add a gui to it, then they would be noob friendly too šŸ˜€


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s