atool in Termux – Manage ZIP, TAR, GZ and Other Archive Files

atool is a useful command-line tool for managing different types of archive files in Termux. It lets you list, extract, create, compare, and manage archives using simple commands. It supports formats like ZIP, TAR, GZIP, and many others. You can use atool to handle archive files from the Termux terminal.

Here’s what you can do with atool in Termux:

  • List files inside an archive.
  • Extract files from an archive.
  • Extract an archive to a specific directory.
  • Create new archives.
  • Display files from an archive.
  • Compare two archives.
  • Repack an archive into another format.
  • Control extraction and overwrite options.
  • Simulate archive operations without changing files.

Install atool in Termux

Below is the simple command to install atool in Termux using the pkg package manager. Just open Termux, copy the command and run it.

First, update the Termux packages.

pkg update && pkg upgrade -y

Install atool.

pkg install atool -y

Check the installed version.

atool --version

atool is now installed and ready to use.

Use atool in Termux

After installing atool, you can use a few simple commands to view, extract, create, and manage different archive files.

List the files inside an archive.

atool -l archive.zip

You can also use:

als archive.zip

Extract an archive.

atool -x archive.zip

You can also use:

aunpack archive.zip

Extract an archive to a specific directory.

atool -X ~/Documents archive.zip

Create an archive.

atool -a backup.tar.gz file1.txt file2.txt

You can also use:

apack backup.tar.gz file1.txt file2.txt

Extract a file from an archive and display it in the terminal.

atool -c archive.zip file.txt

You can also use:

acat archive.zip file.txt

Compare two archives.

atool -d archive1.zip archive2.zip

You can also use:

adiff archive1.zip archive2.zip

Repack an archive into another format.

atool -r archive.zip

You can also use:

arepack archive.zip

Force overwriting of existing files while extracting.

atool -xf archive.zip

Increase the output details.

atool -v -l archive.zip

Decrease the output details.

atool -q -l archive.zip

Show what atool is doing during an operation.

atool -E -x archive.zip

Simulate an operation without making changes to the filesystem.

atool -S -x archive.zip

Extract an archive and always create a subdirectory.

atool -D -x archive.zip

Specify the archive format manually.

atool -F zip -a backup.zip file.txt

Show the atool help menu.

atool --help

You can use these commands to work with archive files in termux and easily manage different compressed files in one place.

End Note

atool is a useful command-line archive management tool that allows you to handle different formats from the terminal with easy commands and keep your file management tasks simple. You can use it to manage your archive files in termux.

SHARE THIS POST: