atool
A script for managing file archives of various types. `atool` uses external archiver programs but provides a consistent command-line interface for listing, extracting, creating, and managing archives.
More info →Options (8)
-l, --listbooleanList files in an archive
atool {{[-l|--list]}} {{path/to/archive.zip}}-x, --extractbooleanExtract an archive (safely creates a subdirectory if needed)
atool {{[-x|--extract]}} {{archive.tar.gz}}-X, --extract-tobooleanExtract an archive to a specific directory
atool {{[-X|--extract-to]}} {{path/to/output_directory}} {{archive.rar}}-c, --catbooleanDisplay a specific file's content from an archive to `stdout` (like `cat`)
atool {{[-c|--cat]}} {{archive.tar}} {{path/to/file_in_archive.txt}}-a, --addbooleanCreate a new archive from specified files and/or directories
atool {{[-a|--add]}} {{new_archive.zip}} {{path/to/file1 path/to/file2 ...}}-p, --pagerbooleanList files in an archive and send the output through a pager
atool {{[-l|--list]}} {{[-p|--pager]}} {{large_archive.tar.bz2}}-e, --eachbooleanExtract multiple archives at once (each to its own subdirectory if needed)
atool {{[-x|--extract]}} {{[-e|--each]}} {{archive1.zip}} {{archive2.tar.gz}} {{*.rar}}-r, --repackbooleanRepack an archive from one format to another (e.g., `.tar.gz` to `.tar.7z`)
atool {{[-r|--repack]}} {{old_archive.tar.gz}} {{new_archive.tar.7z}}Examples (8)
List files in an archive
atool [-l|--list] path/to/archive.zipExtract an archive (safely creates a subdirectory if needed)
atool [-x|--extract] archive.tar.gzExtract an archive to a specific directory
atool [-X|--extract-to] path/to/output_directory archive.rarDisplay a specific file's content from an archive to `stdout` (like `cat`)
atool [-c|--cat] archive.tar path/to/file_in_archive.txtCreate a new archive from specified files and/or directories
atool [-a|--add] new_archive.zip path/to/file1 path/to/file2 ...List files in an archive and send the output through a pager
atool [-l|--list] [-p|--pager] large_archive.tar.bz2Extract multiple archives at once (each to its own subdirectory if needed)
atool [-x|--extract] [-e|--each] archive1.zip archive2.tar.gz *.rarRepack an archive from one format to another (e.g., `.tar.gz` to `.tar.7z`)
atool [-r|--repack] old_archive.tar.gz new_archive.tar.7z