I have written multiple posts about termux tools where you have to use some files in termux, and in order to use those file you need to download them from the internet in termux, and I am getting comments about how to download and move files in termux, so in this post, I am gonna show how you can Download any file in Termux using a single command🔥.
Why you need to Download files in Termux?
To download any file in termux we need to first install a single package name wget, this package installation is only a one time job, and as long as you don’t delete termux you can download anything you want in a single command.
To Install wget in temux you just have to type the below command in termux. wget is a small package and it won’t take more than 10 sec to download.
pkg install wget -y
if you are getting any errors while installing then you can type pkg update and your problem will be solved.
Now to Download any file in Termux you just have to follow the below 2 steps:
Copy the URL of the file you wanna download, and make sure you are copying the URL of the file and not the webpage. If you don’t know the difference then keep in mind that if your Copied URL is ending with some file extension then it’s a URL of some file, Else you are copying the wrong URL. To copy the URL of the file you wanna download you can open the main website of that image and copy it from there. you can also copy URL of any Image on my website and it will download perfectly. To copy an URL just long-press on the image you wanna download, and click on the copy link address.
Now you have the link of the file and to download that file inside the termux you just have to type wget and then you have to paste your URL and the file will be downloaded in your current working directory.
If you just quickly wanna test this tool then you can copy and paste this example command:
After downloading the file type ls and press enter and you will see your downloaded file. You can also type wget -h to find out more about wget tool.