Termux tutorials
first update and update Termux .
$ apt update
$ apt upgrade
Now install apache2
$ apt install apache2
apache2 path =
/data/data/com.termux/files/usr/share/apache2/default-site/htdocs/
for Example i have a file read.txt now you must move this file to apache2 path then type this command :
$ mv read.txt /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/
Now start apache2 service with this command :
$ apachectl
Now opn browser and type :
localhost:8080
It shows IT WORKS !
Now access read.txt file with browser then type this command:
localhost:8080/read.txt
If you want to stop apache2 service then close termux application it will stop.
That's it.
$ apt update
$ apt upgrade
Now install apache2
$ apt install apache2
apache2 path =
/data/data/com.termux/files/usr/share/apache2/default-site/htdocs/
for Example i have a file read.txt now you must move this file to apache2 path then type this command :
$ mv read.txt /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/
Now start apache2 service with this command :
$ apachectl
Now opn browser and type :
localhost:8080
It shows IT WORKS !
Now access read.txt file with browser then type this command:
localhost:8080/read.txt
If you want to stop apache2 service then close termux application it will stop.
That's it.
Create zip files
Fisrt update and install requirments ..
$ apt update
$ apt upgrade
$ apt install zip
$ apt install unzip
Creating Zip file :
$ zip name.zip [your files]
Here name.zip is the name for that zip file
your files means = your files to make zip such as .txt .md folder .png .jpg etc..,
Unzip process :
$ unzip name.zip
that's it it will unzip your zip file..
Comments
Post a Comment