Download a file from the network directly to the desired folder

Many of us use a predefined folder for our downloads, either in our home called Downloads, Downloads, or whatever.

The issue is that many times we want to save a file in a certain folder, for this the usual thing would be to access that URL using the browser, which asks us where we want to save the file (in which directory), and then it will begin to download. But this is not the only way, we do not always have to depend on the browser.

Basically our solution is wget, at least what will work in the background 😉

This may seem simple (and for many it is), but ... since I had to explain all this to my girlfriend in great detail (because i was downloading Retrica for iPhone ...), it costs me nothing to put it here too haha.

Using our file manager + wget

Every self-respecting file browser has a built-in console. I mean the terminal that can appear when we press a key:

Dolphin

Dolphin (KDE) is not the only one that brings this which is so useful to us on many occasions.

To download a file we simply go to the desired folder, let's say ... / home / user / TEMP / downloads / and there we start downloading using wget:

wget DIRECCION-DEL-ARCHIVO

For example:

wget http://www.sitio.com/files/compressed/bigfile.7z

dolphin-wget

This will start to download the file in the same folder where they are.

Of course, if they close the file browser, the download will almost certainly stop them, to avoid this they can send the download process to the background.

Using only terminal with wget

wget allows us using a parameter to specify the download folder (and final file). In other words, we open a terminal and a simple parameter will make the file download to a certain folder:

wget http://www.sitio.com/lista.txt -O /home/kzkggaara/TEMP/downloads/

This will cause us to download the file in the / home / kzkggaara / TEMP / downloads / folder

The parameter is'minus or uppercase'... that is, O from OSO but capitalized: -O

Using Dolphin + ServiceMenu

There is a service menu (servicemenu) for KDE that does just this:

  1. Download a file to the desired folder
  2. We can enter the URL or you can take it from the clipboard (clipboard)

First let's download the file:

Download wget Service Menu

Then we copy it to the indicated folder:

cp *.desktop $HOME/.kde4/share/kde4/services

And finally we reload so that it is enabled without the need to close the file browser:

kbuildsycoca4

And voila, we will have this option:

wget-servicemenu

What it will do is open a console (konsole) in that directory and download the file in question, the terminal will close when the download is finished.

End

Well there is not much more to add. Until now I use wget directly in the terminal, however this last option is very interesting to me.

PD: Ah, it is fair to clarify that the iPhone is not my girlfriend's, it belongs to her boss who is an inveterate Apple fan, one of those who open the Apple website in Spanish before your email haha.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Lolo said

    The post is not bad.

    Do you know Axel?

    It is a good option to download large files, it is similar to wget but much faster since it uses multiple connections.

    1.    moony said

      ... if the post is not wrong, then say:
      The post is good! (it doesn't hurt, posta ...)

      PS: The post is good!

      1.    Lolo said

        Man, if it's not bad it means it's good. No?

        MMM

        The "post is good" here is not said. I imagine that in Hispano America it can be misinterpreted so I'll just say Good post!

        Either way, I didn't mean to bother ...

        A greeting.

    2.    KZKG ^ Gaara said
  2.   jvk85321 said

    There is also aria2, which works the same as wget but it splits the files and can download several at a time.

    An example
    [code] aria2c -c -j5 -s3 -x16 –input-file = / tmp / apt-fast.list [/ code]

    atte
    jvk85321

    1.    jvk85321 said

      Sorry example would be

      aria2c -c -j5 -s3 -x16 –input-file=/tmp/apt-fast.list

      let's see if it looks good now

      atte
      jvk85321

    2.    KZKG ^ Gaara said

      This one I did not know, I will try it shortly hehe.

      Thanks!

  3.   Fernando Gonzalez said

    Excellent tutorial, thanks.

  4.   gargadon said

    That's not counting wget's -c option to summarize incomplete downloads. It is perfect especially if the network is very unstable.

    1.    rawBasic said

      Thanks, I did not know it and it is useful to me. 😉

  5.   Bertoldo Suarez placeholder image said

    Hey.
    But is this a download solution to the desired folder without using the internet browser?

    I suppose that the internet browser they use in gnu / linux does ask to choose in which folder to download a file.

  6.   moa said

    Will there be no axel service menu?