Zip and Unzip are simple command-line tools used to compress and extract ZIP files in Termux. It help you create ZIP archives, extract compressed files, and manage files and folders using simple commands. You can also use it for saving storage space, sharing files, and creating backups on your device.
Here’s what you can do with Zip and Unzip in Termux:
- Compress files into ZIP archives.
- Compress folders recursively.
- Extract ZIP files.
- View ZIP file contents.
- Test ZIP archive integrity.
- Create password-protected ZIP files.
Install Zip and Unzip in Termux
Below are the simple commands to install Zip and Unzip in Termux. Copy and run the command one by one to install the tools.
Update Termux packages.
pkg update && pkg upgrade -yInstall Zip.
pkg install zip -yInstall Unzip.
pkg install unzip -yZip and Unzip are now installed and ready to use.
Use Zip and Unzip in Termux
After installing Zip and Unzip, you can use different commands to compress files, extract ZIP archives, and manage compressed files.
Compress a file into a ZIP archive.
zip archive.zip file.txtCompress a folder recursively.
zip -r archive.zip folderExtract a ZIP file.
unzip archive.zipExtract files to a specific directory.
unzip archive.zip -d outputList the contents of a ZIP file.
unzip -l archive.zipCreate a password-protected ZIP file.
zip -e secure.zip file.txtUpdate an existing ZIP archive.
zip -u archive.zip file.txtDelete a file from a ZIP archive.
zip -d archive.zip file.txtTest the integrity of a ZIP archive.
zip -T archive.zipTest a ZIP archive before extracting.
unzip -t archive.zipOverwrite existing files while extracting.
unzip -o archive.zipShow the Zip version.
zip -vShow the Unzip version.
unzip -vYou can use these commands to compress, extract, test, and manage ZIP files easily in Termux.
End Note
Zip is useful for creating compressed files, while Unzip makes it easy to extract ZIP archives in Termux. Both tools are simple to use and help you manage files quickly on your Android device. You can also use them to organize and share files more easily.

