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

Download all articles in PDF format with our TecMint Content Subscription and Linux Support Services starting at $39 per month.

Support TecMint: Did you find this tutorial helpful?. Please help to keep it alive by donating. Every cent counts! - Donate Now

Ravi Saive

I am Ravi Saive, creator of TecMint. 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. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

8 Responses

  1. Jonathan Leslie says:

    hi everyone, my 7zip file has a password, can i still use dtxr ? is yes then how?

  2. 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
    }

  3. Jan says:

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

  4. jabson says:

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

  5. Debasish says:

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

  6. Shahil says:

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

  7. 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?

Got something to say? Join the discussion.

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

Join Over 95000+ Linux Users
  1. 77,543
  2. 4,213
  3. 35,218

Enter your email to get latest Linux Howto's