atool
TLDR
Extract any archive
SYNOPSIS
atool [-x|-l|-c|-a] [options] archive [files]
DESCRIPTION
atool is a wrapper script that manages archives in various formats. It automatically detects archive types and uses the appropriate tool (tar, unzip, rar, etc.), providing a consistent interface regardless of format.
The tool simplifies working with mixed archive formats without memorizing different tools' syntax.
PARAMETERS
-x, --extract
Extract archive-l, --list
List contents-c, --create
Create archive-a, --add
Add files to archive-X dir, --extract-to=dir
Extract to specific directory-e, --each
Execute command for each listed file-f, --force
Force overwrite-D, --subdir
Always extract to subdirectory
SUPPORTED FORMATS
- tar (gzip, bzip2, xz, lzma, zstd)
- zip
- rar
- 7z
- ar
- cpio
- And more through backend tools
CAVEATS
Requires appropriate backend tools installed (tar, unzip, unrar, 7z, etc.). Archive format detection based on extension. Some rare formats may not be supported.
HISTORY
atool was created to provide a unified interface for the many archive formats found on Unix systems, reducing cognitive overhead.


