← 返回命令列表

Linux command

dtrx 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Extract archive

dtrx [archive.tar.gz]

Extract multiple archives

dtrx [*.tar.gz]

Extract to specific

dtrx -o [output_dir] [archive.tar.gz]

Extract flat

dtrx -f [archive.tar.gz]

List archive contents

dtrx -l [archive.tar.gz]

Extract with metadata

dtrx -m [archive.tar.gz]

说明

dtrx (Do The Right Extraction) intelligently extracts archives regardless of format. It automatically handles tar, zip, rar, 7z, and many other formats, creating sensibly-named directories for contents. The tool solves common extraction problems: archives that extract many files into the current directory, nested archives, and varying archive formats. It always creates a single directory for the archive contents. dtrx supports recursive extraction, automatically handling archives within archives.

参数

-o, --output _DIR_
Output directory.
-f, --flat
Extract flat without directory.
-l, --list
List contents only.
-m, --metadata
Preserve ownership/permissions.
-r, --recursive
Extract nested archives.
-n, --noninteractive
Never prompt.
--help
Display help information.

FAQ

What is the dtrx command used for?

dtrx (Do The Right Extraction) intelligently extracts archives regardless of format. It automatically handles tar, zip, rar, 7z, and many other formats, creating sensibly-named directories for contents. The tool solves common extraction problems: archives that extract many files into the current directory, nested archives, and varying archive formats. It always creates a single directory for the archive contents. dtrx supports recursive extraction, automatically handling archives within archives.

How do I run a basic dtrx example?

Run `dtrx [archive.tar.gz]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o, --output _DIR_ do in dtrx?

Output directory.