wget Linux Command Tips and Tricks
Command: wget
Usage Of Command: wget is a free utility for non-interactive download of files from the webCommand Syntax: $ wget [option] [url]
Example Of Command:
1. To download through wget without any options
$wget http://download.fedoraproject.rg/pub/fedora/linux/releases/9/Live/x86_64/Fedora-Live-Desktop-x86_64-19-1.iso
2. To download in background afterstartup
$ wget -b http://ftp.gnu.org/gnu/gcc/
3. To download multiple files using HTTP and FTP protocol at ones.
$ wget -b http://ftp.gnu.org/gnu/gcc/
$ wget -b ftp://ftp.gnu.org/gnu/gcc/gcc-
4. To download URLs found in local or external file
$ wget -i /downloads/urls.txt
5. To resume getting a partially-downloaded file
$ wget -c http://ftp.gnu.org/gnu/jwhois/
6. To download http and ftp with password restricted sites
$ wget --http-user=user1 --http-password=password1 [URL link]
$ wget --ftp-user=user2 --ftp-password=password2 [URL link]
$ wget --tries=X [URL]
X is number of times retry
0 or inf for infinite number of retries
default number of retry is 20
8. To print help info of this command
$ wget --help
Keywords :
No comments:
Post a Comment