Hallow Friends if you are searching how to create Zipfile using mobile or how to create a zipfile in Termux then you are at the right place.I this article i will discuss how you can make zipfile using command line in Termux.So read this article carefully I will discuss step by step the full process.And you don't know the basic commands of Termux ,you can read our previous Post .Also you can visit our YouTube Channel to know more about Termux and it's uses.
What is zipfile
ZIP is a common file format that’s used to compress one or more files together into a single location.One or more directories and files can be included in a zipfile.
What is Termux
According to www.termux.com Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required .
Termux application can be downloaded from Google play store.Termux is a command typing platform on Android.
How to create a zipfile on Termux
To make a zipfile using Termux use the following commands on termux.It is very easy to make a zipfile using Termux.
To upgrade and update Termux package s
1.pkg update && pkg upgrade
Then you have to install zip package in Termux
2.pkg install zip
Then use ls command to see which directories are present in your present working directory.
If there is present no any directory or file then make some files and folder(directory) using the following commands
mkdir f1 f2 f3
touch 1.txt 2.txt 3.txt
Then use ls command and you will see 3 directories and 3 files are available now.
To include thise 3 directories and files in a zipfile use command
3.zip new f1 f2 f3 1.txt 2.txt 3.txt
Then again use ls command and you will find a zipfile name new.zip.
But there is a problem of using this simple zip command .
With this new zip file there will also present the old directories and files.if you want to make Zipfile by removing the all old directories and file then use the command
4.zip -m new f1 f2 f3 1.txt 2.txt 3.txt
How to unzip a zipfile
We have learnt that how easily we can make a zipfile using Termux.Now what will be the precess if we want to unzip our zipfile.Dont worry step by step i will explain
Install unzip package on Termux
1.pkg install unzip
Then use this simple command
2.unzip <filename>
Suppose if you want to unzip new.zip
Use command
unzip new.zip
See the full video
How to create a password protected ZipFile in Android Using Termux
Previously we have seen ,by using simple steps how we can make a ZipFile in Termux and how easily we can unzip it.Now we will see how we can make a password protected ZipFile in Termux.There are many ways to do it and several commands are available.But now I am going to talk about the the simplest method of them.
I am assuming that you have two txt files in your present working directory (pwd) 1.txt and 2.txt .And you want to compress them in a password protected ZipFile.Then you have to use the simple command
$ zip --password 12345 n.zip 1.txt 2.txt
Where 12345 will be your ZipFile password.And n.zip will be your password protected ZipFile
If you want to do unzip that zipfile (n.zip) you can you the command
$ unzip n.zip
But in that case your terminal will ask you to enter the password.And after entering the password your ZipFile Will be unzipped.
So that's all for today .Stay with us to get more posts like this.
0 Comments