When working with Linux there is a constant need for dealing with compressed files may it be installing new applications or packing the files etc. It is possible to remember some standard file formats such as zip and tar but it all other formats. This makes it challenging to extract a file quickly without any reference to manual. In addition to that if you have help other Linux who are novice then you need to really find a solution. This problem has led to many project and out of that the project DTRX seems to stand out.
dtrx stands for “Do The Right Extraction.” It’s a tool for Unix-like systems that takes all the hassle out of extracting archives.
apt-get install dtrx
code@code:~/dtrx$ dtrx --help Usage: dtrx [options] archive [archive2 ...] Intelligent archive extractor Options: --version show program's version number and exit -h, --help show this help message and exit -l, -t, --list, --table list contents of archives on standard output -m, --metadata extract metadata from a .deb/.gem -r, --recursive extract archives contained in the ones listed --one=ONE_ENTRY_DEFAULT, --one-entry=ONE_ENTRY_DEFAULT specify extraction policy for one-entry archives: inside/rename/here -n, --noninteractive don't ask how to handle special cases -o, --overwrite overwrite any existing target output -f, --flat, --no-directory extract everything to the current directory -v, --verbose be verbose/print debugging information -q, --quiet suppress warning/error messages
Handles many archive types: 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.
Keeps everything organized: dtrx will make sure that archives are extracted into their own dedicated directories.
Sane permissions: dtrx makes sure you can read and write all the files you just extracted, while leaving the rest of the permissions intact.
Recursive extraction: dtrx can find archives inside the archive and extract those too.
$dtrx testfile.tgz $dtrx testfile.zip
For more information refer to the following links