dtrx(1)

πŸ“¦
version 8.7.1 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ 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, dtrx will 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, dtrx will 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 β€” normally dtrx will avoid extracting into a directory that already exists, and instead try to find an alternative name to use. but if this option is listed, dtrx will 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 β€” dtrx will 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; dtrx will 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 .deb and .gem archives, instead of their normal contents. sometimes you want the receipts, not the whole meal 🧾
  • -q, --quiet β€” suppress warning messages. list this option twice to make dtrx silent. 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 β€” display dtrx'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>

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