dtrx(1)
β¨ dtrx β cleanly extract many archive types β¨
okay bestie, gather round, because dtrx is about to change your whole unzip situation. it's a manual page, it's a group chat, it's both. let's go π
πΈ SYNOPSIS πΈ
dtrx [OPTIONS] ARCHIVE [ARCHIVE ...]
π¦ DESCRIPTION π¦
so dtrx extracts archives in a bunch of different formats, and it currently supports tar, zip (yes, including self-extracting .exe files, iconic of it), cpio, rpm, deb, gem, 7z, cab, rar, lzh, arj, and InstallShield files. bestie it's giving "one tool to rule them all" no cap π«Ά
and it doesn't stop there β it can also decompress files compressed with gzip, bzip2, lzma, xz, lrzip, lzip, or compress. the range?? unmatched. periodt.
but like, besides being that one command that handles a million archive types, dtrx also helps you out by extracting contents consistently. by default, everything gets written to a dedicated directory that's named after the archive. and dtrx also changes the permissions so that the owner can read and write all those files. tidy queen behavior π
to run dtrx, simply call it with the archive(s) you wish to extract as arguments. for example:
$ dtrx coreutils-5.*.tar.gz
you can specify URLs as arguments too π€― and if you do, dtrx will use wget -c to download the URL to the current directory, and then extract whatever it downloaded. it may fail if you already have a file in the current directory with the same name as the file you're trying to download β so like, heads up, don't do that π
π OPTIONS π
dtrx supports a number of options to mandate specific behavior. she's flexible, she listens, she delivers:
-r,--recursiveβ with this option,dtrxwill search inside the archives you specify to see if any of the contents are themselves archives, and extract those as well. archives within archives?? it's giving inception, and we're obsessed π₯--one,--one-entryβ normally, if an archive only contains one file or directory, and its name doesn't match the archive's,dtrxwill ask you how to handle it. with this option, you can specify ahead of time what should happen. the possible values are:insideβ extract the file/directory inside another directory named after the archive. this is the default, so if you're not sure, this is the vibe.renameβ extract the file/directory in the current directory, and then rename it to match the name of the archive. a little glow-up, as a treat β¨hereβ extract the file/directory in the current directory. just, like, right there. raw. no extra folder π
-o,--overwriteβ normallydtrxwill avoid extracting into a directory that already exists, and instead try to find an alternative name to use. but if this option is listed,dtrxwill use the default directory name no matter what. she said "i'm not asking, i'm telling."-f,--flatβ extract all archive contents into the current directory, instead of their own dedicated directory. this is handy if you have multiple archive files which all need to be extracted into the same directory structure. > heads up bestie: existing files may be overwritten with this option. so like, know what you're doing, fr fr π-n,--noninteractiveβdtrxwill normally ask the user how to handle certain corner cases, like how to handle an archive that only contains one file. this option suppresses those questions;dtrxwill instead use sane, conservative defaults. no small talk, just results π-l,-t,--list,--tableβ don't extract the archives; just list their contents on standard output. window shopping, but make it archive contents ποΈ-m,--metadataβ extract the metadata from.deband.gemarchives, instead of their normal contents. sometimes you want the receipts, not the whole meal π§Ύ-q,--quietβ suppress warning messages. list this option twice to makedtrxsilent. two-qs and she's not speaking to anyone π€-v,--verboseβ show the files that are being extracted. list this option twice to print debugging information. two-vs and she's telling you everything π£οΈ--helpβ display basic help. she's got you, bestie.--versionβ displaydtrx's version, copyright, and license information. the origin story, the legal lore π
π LICENSE π
dtrx 7.1 is copyright Β© 2006-2011 Brett Smith and others. feel free to send comments, bug reports, patches, and so on β the author literally wants them, so don't be shy π«Ά you can find the latest version of dtrx on its home page at http://www.brettcsmith.org/2007/dtrx/.
dtrx is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. slay, legally speaking π
this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details. (yes, that's the all-caps part, and yes, it's meant to be that loud. do not skip it π’)
you should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.
π Author π
Brett Smith <brettcsmith@brettcsmith.org>
π Copyright π
2006-2011 Brett Smith and others
okay that's the whole page, you're officially certified in dtrx bestie, go extract something iconic π
β¨ this was the dtrx(1) page from the General Commands Manual, dated 2011-11-19 β sending you good extraction vibes, bye π¦πΈ
π¦ where this page comes from
- ubuntu resolute: dtrx 8.5.3-3build1 Β· GPL-3.0-or-later
- ubuntu stonking: dtrx 8.7.1-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms