CLI: Dtrx the extrakt/unzip magician

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules:
User avatar
Posts: 9171
Joined: 14 Mar 2010, 16:34

CLI: Dtrx the extrakt/unzip magician

Postby viking60 » 07 Jun 2016, 23:14

I installed dtrx to be able to unzip everything without having to remember the howto's.
So I did what I usually do and downloaded Reactos.

This is a zip file but it could easily have been gz2 or anything else.

My Download folder is pretty crowded so I usually have to unpack to somewhere else and this takes a lot of time. So I simply did a

Code: Select all

and it told me what the content was and if I wanted to rename or extract to a different folder. That saves time +1

You only need to remember one simple command to extract tar, zip, cpio, deb, rpm, gem, 7z, cab, lzh, rar, gz, bz2, lzma, xz, and many kinds of exe files, including Microsoft Cabinet archives, InstallShield archives, and self-extracting zip files. If they have any extra compression, like tar.bz2 files, dtrx will take care of that for you, too. :s

dtrx also makes sure you can read and write all the files you just extracted, while leaving the rest of the permissions intact. You don't have to remember a lot of switches simply type dtrx and the file to unzip.

You need to have the extract tools installed for dtrx to work:
So if you want to unpack a bz2 file you need to have the bzip2 tools installed - after that dtrx will extract everything for you.
You don't have to remember bzip2 [ -cdfkqstvzVL123456789 ] [ filenames ... ] - dtrx filename will do just fine.

It works!
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

Return to “Tips & Tricks”