dtrx stands for "Do The Right Extraction". It is a tool for Unix-like
systems for extracting different archive formats.
Features:
Support for many archive types, including tar, zip, cpio, deb, rpm,
gem, 7z, cab, gz, bz2, and lzma files. Extra compression like
.tar.bz2 is recognized.
Archives are extracted into their own dedicated directories.
All extracted files can be read and written, while leaving the rest
of the permissions intact.
dtrx can find archives inside the archive and extract those too.