dtrx

Langue: en

Autres versions - même langue

Version: 263794 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

dtrx - Intelligent archive extraction

SYNOPSIS

dtrx [ -ltmrnofvq ] archive [ archive ] ...

DESCRIPTION

dtrx stands for Do The Right Extraction. It's a tool for Unix-like systems that takes all the hassle out of extracting archives. Here's an example of how you use it:
dtrx linux-2.6.10.tar.bz2

That's basically the same thing as:

tar -jxf linux-2.6.10.tar.bz2

But there's more to it than that. You know those really annoying files that don't put everything in a dedicated directory, and have the permissions all wrong?

tar -zvxf random-tarball.tar.gz
foo
bar
data/
data/text
cd data/
cd: permission denied: data

dtrx takes care of all those problems for you, too:

dtrx random-tarball.tar.gz
cd random-tarball/data
cat text

This all works properly.

dtrx is simple and powerful. Just use the same command for all your archive files, and they'll never frustrate you again.

OPTIONS

-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.
--one, --one-entry
Normally, if an archive only contains one file or directory with a name that 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. Possible values are:
inside: Extract the file/directory inside another directory named after the archive. This is the default.
rename: Extract the file/directory in the current directory, and then rename it to match the name of the archive.
here: Extract the file/directory in the current directory.
-o, --overwrite
Normally, dtrx will avoid extracting into a directory that already exists, and instead try to find an alternative name to use. If this option is listed, dtrx will use the default directory name no matter what.
-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. Note that existing files may be overwritten with this option.
-n, --noninteractive
dtrx will normally ask the user how to handle certain corner cases, such as how to handle an archive that only contains one file. This option suppresses those questions; dtrx will instead use sane, conservative defaults.
-l, -t, --list, --table
Don't extract the archives; just list their contents on standard output.
-m, --metadata
Extract the metadata from .deb and .gem archives, instead of their normal contents.
-q, --quiet
Suppress warning messages. Listing this option twice will cause dtrx to be silent.
-v, --verbose
Show the files that are being extracted. Listing this option twice will cause dtrx to print debugging information.
--help
Display basic help.
--version
Display dtrx's version, copyright, and license information.
Copyright 2006, 2007, 2008 Brett Smith <brettcsmith@brettcsmith.org>

Copyright 2008 Peter Kelemen <Peter.Kelemen@gmail.com>

This program 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.

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.s