Monday, November 11, 2013

wget Linux Command Options

wget Linux Command Tips and Tricks

Command: wget

Usage Of Command:  wget is a free utility for non-interactive download of files from the web

Command 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/gcc-3.3.tar.gz

3. To download multiple files using HTTP and FTP protocol at ones.

    $ wget -b http://ftp.gnu.org/gnu/gcc/gcc-3.3.tar.gz

    $ wget -b ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.1/gcc-4.8.1.tar.gz

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/jwhois-4.0.tar.gz

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]

7. To Set number of retries to number

    $ 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 :

wget Linux Command Options

wget Command in Linux

Examples of wget Linux Command

No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers