wget Linux command of

 

Download a website, but you do not want to download pictures, you can use the following command.

Example 12: Use wget -o to download information into the log file

command:

wget -o download.log URL

Description:

You do not want to download information directly but in a log file, you can use the terminal

Example 13: Use wget -Q limit the total download file size

command:

wget -Q5m -i filelist.txt

Description:

When the file you want to download more than 5M exit download, you can use. Note: This parameter does not work on a single file to download, if only recursive downloads effective.

Example 14: Use wget -r -A download the specified format file

command:

wget -r -A.pdf url

Description:

You can use this function in the following situations:

All the pictures to download a website

All video to download a website

All PDF files downloaded a Web site

Example 15: Use wget FTP download

command:

wget ftp-url

wget --ftp-user=USERNAME --ftp-password=PASSWORD url

Description:

You can use wget to download the complete ftp links.

Anonymous ftp download using wget:

wget ftp-url

Use wget user name and password authentication ftp download

wget --ftp-user=USERNAME --ftp-password=PASSWORD url

 

Note: compile and install

Use the following command to compile and install: 

# Tar zxvf wget-1.9.1.tar.gz 

# cd wget-1.9.1 

# ./configure 

# make 

# make install 

Guess you like

Origin www.cnblogs.com/wzy23/p/11389545.html