Dtrx – An Intelligent Archive Extraction (tar, zip, cpio, rpm, deb, rar) Tool for Linux

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

Ravi Saive

Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Host Your Own Website at $97 Discount + One Free Domain Using our Promo Code 'Tec97' (Enter this code during Signup) - Signup with DreamHost Now!

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

7 Responses

  1. Heinrich says:

    I use a function in my .bashrc which does the extraction job for me:

    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
    ;;
    *.tar.xz)
    tar -xJf $1
    ;;
    *)
    echo “‘$1′ cannot be extracted via >extract<"
    ;;
    esac;
    else
    echo "'$1' is not a valid file";
    fi
    }

  2. Jan says:

    The tar command has autodetection of compression. No need for -zxf or -xjf etc, just use -xf.

  3. jabson says:

    It can also be used:
    tar xf file
    and tar will automatically recognize what compression method was used and extract the file.

  4. Debasish says:

    Every thing is well except .rar extraction is not working for my case …………………….

  5. Shahil says:

    Cool Sir :) Thank you ……… Beauty of Linux very Useful tool …………….

  6. Gokul Nair says:

    Dear Ravi,

    Thanks. Good tool and easy to use. One qn:- What does the command ‘python setup.py install –prefix=/usr/local’ actually mean?

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Join Over 62000+ Linux Users
  1. 48100
  2. 2222
  3. 11697
Enter your email to get latest Linux Howto's