First, Introduction
Linux system download file tool to download files from the specified URL
Ii. Methods of Use
1 2 3 4 5 6 7 8 |
Syntax: wget [parameters] [URL address] Options: -C then download the files that are not finished downloading -B into background execution after startup -P Specify download directory -o Change Download file name --ftp-user--ftp-password using FTP user authentication download Parameters: Specified file download URL address |
Third, the case
1. Download a single file using wget
1 |
wget http://cn2.php.net/distributions/php-5.6.13.tar.gz |
2. Download and save with a different file name
1 |
Wget-o php5.6.tar.gz http://cn2.php.net/distributions/php-5.6.13.tar.gz |
3. using wget Breakpoint to continue transmission
1 |
Wget-c http://cn2.php.net/distributions/php-5.6.13.tar.gz |
4. using wget background Download
1 |
Wget-b http://cn2.php.net/distributions/php-5.6.13.tar.gz |
Tail-fwget-log #查看文件下载进度
5. download to the specified directory using wget
1 |
wget Http://cn2.php.net/distributions/php-5.6.13.tar.gz-P download/ |
6. using wget username and password Authentication download
1 |
wget--ftp-user=ftp_usser_name--ftp-password=user_password ftp_address |
Original: https://www.cnblogs.com/pingzhe/p/8134984.html
Turn: Use of the wget command for Linux common commands