Home » Linux » Advance Commands » How to Download File from Internet using Command Line in Linux ?

How to Download File from Internet using Command Line in Linux ?

In Linux, you can almost do everything using commands… and this is the best this of Linux why most of the Linux users likes. You can also use the terminal and command to download files from internet.

To achieve this, “wget” command comes to help us. Using “wget” command you can download any file from internet provided you have the necessary permissions and the file is downloadable using URL.

So, lets try to download the video file from https://download.blender.org/demo/movies/BBB/ . Open this like in browser, and decide the file you want to download , right click and then click on “Copy Link” . Now using this URL as input to wget command to start the downloading from terminal as,

$ wget https://download.blender.org/demo/movies/BBB/bbb_sunflower_1080p_60fps_normal.mp4

But what if the file to be downloaded is of 10GB and your network stopped working when you downloaded ~9GB of data and everything stopped, and your download got aborted. In this situation, you can’t use above command to restart the download after 9GB of data and you have to download all 10GB again..

then what’s the solution to save bandwidth in unstable internet..

just pass “-c” after wget and if at all download aborted, again use same command with “-c” and it will resume from already downloaded data.

$ wget -c https://download.blender.org/demo/movies/BBB/bbb_sunflower_1080p_60fps_normal.mp4

Now this will work to download the file using command on terminal in Linux.


Subscribe our Rurban Life YouTube Channel.. "Rural Life, Urban LifeStyle"

Leave a Comment