Search Engine

Loading

Sallar

Sallar
RedhatEnterpriseLinux Blog

wget Command


NAME
       Wget - The non-interactive network downloader.
SYNOPSIS
       wget [option]... [URL]...
DESCRIPTION
       GNU Wget is a free utility for non-interactive download of files from the Web.  It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.

       Wget is non-interactive, meaning that it can work in the background, while the user is not logged on.  This allows you to start retrieval and disconnect from the system, letting Wget finish the work.  By contrast, most of the Web browsers require constant user’s presence, which can be a great hindrance when transferring a lot of data.
       Wget can follow links in HTML, XHTML, and CSS pages, to create local versions of remote web sites, fully recreating the directory structure of the original site.  This is sometimes referred to as "recursive downloading."  While doing that, Wget respects the Robot Exclusion Standard (/robots.txt).  Wget can be instructed to convert the links in downloaded files to point at the local files, for offline viewing.
       Wget has been designed for robustness over slow or unstable network connections; if a download fails due to a network problem, it will keep retrying until the whole file has been retrieved.  If the server supports regetting, it will instruct the server to continue the download from where it left off.
OPTIONS
   Option Syntax
       Since Wget uses GNU getopt to process command-line arguments, every option has a long form along with the short one.  Long options are more convenient to remember, but take time to type.  You may freely mix different option styles, or specify options after the command-line      arguments.  Thus you may write:
               wget -r --tries=10 http://fly.srk.fer.hr/ -o log
       The space between the option accepting an argument and the argument may be omitted.  Instead of -o log you can write -olog.
       You may put several options that do not require arguments together, like:
               wget -drc <URL>
       This is completely equivalent to:
               wget -d -r -c <URL>
Since the options can be specified after the arguments, you may terminate them with --.  So the following will try to download URL -x,
      reporting failure to log:
               wget -o log -- -x
The options that accept comma-separated lists all respect the convention that specifying an empty list clears its value.  This can be useful to clear the .wgetrc settings.  For instance, if your .wgetrc        sets "exclude_directories" to /cgi-bin, the following example will first reset it, and then set it to exclude /~nobody and /~somebody. You can also clear the lists in .wgetrc.
Basic Startup Options
       -V        --version            Display the version of Wget.
       -h        --help            Print a help message describing all of Wget’s command-line options.
       -b        --background   Go to background immediately after startup.  If no output file is         specified via the -o, output is redirected to wget-log.
       -e command
       --execute command
Execute command as if it were a part of .wgetrc.  A command thus invoked will be executed after the commands in .wgetrc, thus taking precedence over them.  If you need to specify more than one wgetrc command, use multiple instances of -e.
Logging and Input File Options
      -o logfile
--output-file=logfile
Log all messages to logfile.  The messages are normally reported to standard error.
       -a logfile
       --append-output=logfile
Append to logfile.  This is the same as -o, only it appends to logfile instead of overwriting the old log file.  If logfile does not exist, a new file is created.
       -d        --debug
Turn on debug output, meaning various information important to the developers of Wget if it does not work properly.  Your system administrator may have chosen to compile Wget without debug           support, in which case -d will not work.  Please note that compiling with debug support is always safe---Wget compiled with the debug support will not print any debug info unless requested           with -d.






0 comments:

Post a Comment

Powered by Blogger.

Ads

 
Copyright © Redhat Enterprise linux. Original Concept and Design by My Blogger Themes
My name is Abdul Razaq but people call me Raziq. Here is my home page: www.redhatenterpriselinux.blogspot.com I live in Quetta, Pakistan and work as an IT-Engineer.