dtrx
Extract multiple archive types easily
TLDR
Extract archive, guessing the extraction tool from extension
Extract archive, overwrite any existing target output
Extract archive, put everything into current directory
SYNOPSIS
dtrx [options] archive1 [archive2 ...]
PARAMETERS
-n
Preview extraction: show what will be extracted without actually performing the extraction.
-v
Verbose output: Show which extraction tool is being used and more details about the extraction process.
-q
Quiet mode: Suppress most output, only showing errors.
-f
Force overwrite: If a directory with the same name as the archive already exists, dtrx will overwrite it without prompting (use with caution).
-o
Output to a specific directory instead of creating a new directory based on the archive name.
--version
Display dtrx version and exit.
--help
Display help message and exit.
DESCRIPTION
dtrx (Do The Right eXtraction) is a command-line utility for intelligently extracting archives. Instead of having to remember the specific command for each archive type (tar, zip, rar, etc.), dtrx automatically determines the archive type and uses the appropriate extraction tool. It also handles nested archives recursively, ensuring that all content is extracted. dtrx is designed to be user-friendly and simplify the process of extracting multiple archives, especially when their types are unknown. It creates new directories to avoid file collisions and minimize clutter in the current working directory.
Dtrx recursively extracts archives, which means it will unpack archives within archives if needed. It also prevents file overwrite by creating unique directories for each archive unpacked. This is helpful when dealing with archives containing files with the same name. It can extract many types of archives including 7z, arj, bz2, cpio, deb, gem, gz, iso, lha, lz, lzma, lzo, rpm, rar, rz, tar, tbz, tgz, tlz, txz, xz, Z, zip.
DEPENDENCIES
Dtrx relies on other utilities to extract specific archive types. Ensure that the necessary tools (e.g., `tar`, `unzip`, `unrar`, `7z`, etc.) are installed on your system.
EXIT CODES
Dtrx returns 0 on success, and a non-zero value if it encounters an error during extraction.