LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to download in the bash shell (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-download-in-the-bash-shell-141809/)

magicked 02-03-2004 11:20 AM

how to download in the bash shell
 
how do you download from a site while running the bash shell? can you do http or only ftp?

Nis 02-03-2004 11:24 AM

Try 'man wget'. Just use the entire URL of the file you want to download and wget will download it for. It can even resume downloads if the server supports it. And it supports both http and ftp.

Sm0k3 02-03-2004 11:25 AM

use 'wget'


wget http://www.yoursite.com/files/fileiwant.doc
wget ftp://user@ftp.idsoftware.com/pub/quake2/*.tar.gz

that will download whatever you request into the current directory

druuna 02-03-2004 11:26 AM

wget can be used (from within a script), there are probably other possibilities, but this came to mind first.

See man wget for details

Hope this helps.

magicked 02-03-2004 11:28 AM

thanks guys, it worked

fancypiper 02-03-2004 11:32 AM

Mirror an entire site with it if you wish.

wget -m <site url>


All times are GMT -5. The time now is 01:43 AM.