LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2004, 11:20 AM   #1
magicked
LQ Newbie
 
Registered: Oct 2003
Posts: 20

Rep: Reputation: 0
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?
 
Old 02-03-2004, 11:24 AM   #2
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
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.
 
Old 02-03-2004, 11:25 AM   #3
Sm0k3
Member
 
Registered: Sep 2003
Location: Chicago
Distribution: Slackware-current
Posts: 63

Rep: Reputation: 15
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
 
Old 02-03-2004, 11:26 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 02-03-2004, 11:28 AM   #5
magicked
LQ Newbie
 
Registered: Oct 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Talking

thanks guys, it worked
 
Old 02-03-2004, 11:32 AM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Mirror an entire site with it if you wish.

wget -m <site url>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
download bash scripts? blagojkk Programming 13 08-08-2005 11:39 AM
bash shell dawood shaheen Programming 9 08-01-2003 05:07 AM
Bash Shell triplem Linux - Software 4 04-17-2003 05:11 PM
Bash shell triplem Linux - Software 1 04-14-2003 08:01 AM
Help!!!!! Bash Shell???? DarkHorse Linux - Newbie 7 06-04-2001 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration