Termux Compression & Archiving Commands

Compression commands in Termux help you pack files into smaller sizes and extract them when needed. These commands are very useful when you want to save storage space or share multiple files easily in one package.

Compression & Archiving Commands List

CommandUseExample
zipCompress fileszip file.zip file.txt
unzipExtract zip fileunzip file.zip
tar -cvfCreate tar archivetar -cvf file.tar folder/
tar -xvfExtract tar archivetar -xvf file.tar
tar -czvfCreate tar.gz filetar -czvf file.tar.gz folder/
tar -xzvfExtract tar.gztar -xzvf file.tar.gz
gzipCompress filegzip file.txt
gunzipDecompress gzip filegunzip file.txt.gz
rarCreate rar archiverar a file.rar folder/
unrarExtract rar fileunrar x file.rar
7zCompress using 7zip7z a file.7z folder/
7z xExtract 7zip file7z x file.7z

These Termux compression commands help you save space and manage files efficiently. They are very useful when sharing or backing up data in Termux.

Quick Examples

Create a zip file:

zip test.zip file.txt

Extract a zip file:

unzip test.zip

Create tar.gz file:

tar -czvf backup.tar.gz folder/

Extract tar.gz file:

tar -xzvf backup.tar.gz
SHARE THIS POST: