1. Single file download
The command will download single file and stores in a current directory. It also shows download progress, size,date and time while downloading.
2. Download file with different name
Using -O (uppercase) option, downloads file with different file name. Here we have given wget.zip file name as show below.
3. Download multiple file with http and ftp protocol
Here we see how to download multiple files using HTTP and FTP protocol with wget command at ones.
4. Read URL’s from a file
You can store number of URL’s in text file and download them with -i option. Below we have created tmp.txtunder wget directory where we put series of URL’s to download.
5. Resume uncompleted download
In case of big file download, it may happen sometime to stop download in that case we can resume download the same file where it was left off with -c option. But when you start download file without specifying -c optionwget will add .1 extension at the end of file, considering as a fresh download. So, it’s good practice to add -cswitch when you download big files.
6. Download file with appended .1 in file name
When you start download without -c option wget add .1 at the end of file and start with fresh download. If .1already exist .2 append at the end of file.
7. Download files in background
With -b option you can send download in background immediately after download start and logs are written in/wget/log.txt file.
8. Restrict download speed limits
With Option –limit-rate=100k, the download speed limit is restricted to 100k and the logs will be created under/wget/log.txt as shown below.
9. Restricted FTP and HTTP downloads with username and password
With Options –http-user=username, –http-password=password & –ftp-user=username, –ftp-password=password, you can download password restricted HTTP or FTP sites as shown below.
10. Find wget version and help
With Options –version and –help you can view version and help as needed.
Tidak ada komentar:
Posting Komentar