wget command examples

– About wget : The non-interactive network downloader.

– Comes From : wget-1.12-1.4.el6.i686

Examples :
————————————————–

– To download a page
# wget www.linux.com

– To log messages
# wget -o log www.linuxorg.com

– To append to log file
# wget -a log www.linuxorg.com

– To run in background
# wget -b  -o log www.linuxorg.com

– To run in verbose mode
# wget -v -o log www.linuxorg.com

– To run in quite mode
# wget -q -o log www.linuxorg.com

– To read URLs from file
# wget -i urlfile -o log www.linuxorg.com

– To set number of tries
# wget -t 5 -o log www.linuxorg.com

– To see the progress
# wget –progress=type -o log www.linuxorg.com
type=bar
type=dot

– To turn on time stamping
# wget -N -o log www.linuxorg.com

– To print the headers sent by the HTTP server/FTP server
# wget -S -o log www.linuxorg.com

– To check the pages are there or they are available
# wget –spider -i urlfile

– To set the time-out period
# wget -T 60 -o log www.linuxorg.com

– To limit the download speed
# wget –limit-rate 100K -o log www.linuxorg.com

– To specify the interval between downloads
# wget -w 10 -o log -i urlfile

– To display the version of wget
# wget -V
# wget –version

Leave a Reply

Your email address will not be published. Required fields are marked *