Tool commands on linux:
Under Linux, you can download all relevant files of the whole station with one command.
Wget - r - p - k - np [URL]
Parameter description:
-r: Recursive download
-p: Download all elements such as pictures used to display HTML pages
-k: Back up the file X as X.orig before converting it.
-Np: Do not trace back to the parent directory

$ wget -r -np -nd http://example.com/packages/
This command can be downloaded http://example.com All files in the packages directory on the website. Where, - np is used to not traverse the parent directory, and - nd means not to recreate the directory structure on the local machine.

$ wget -r -np -nd –accept=iso http://example.com/centos-5/i386/
Similar to the previous command, but with the addition of the – accept=iso option, wget is instructed to download only all files with the iso extension in the i386 directory. You can also specify multiple extensions by separating them with commas.

$ wget -i filename.txt
This command is often used for batch download. Put the addresses of all files to be downloaded in filename.txt, and then wget will automatically download all files for you.

$ wget -c http://example.com/really-big-file.iso
The - c option specified here is used for breakpoint resume.

$ wget -m -k (-H) http://www.example.com/
This command can be used to mirror a website, and wget will convert the link. If the images in the website are placed on another site, you can use the - H option- l. – level=NUMBER Maximum recursion depth (inf or 0 represents infinity).

The last one is used to mirror a website. It is simple, effective and fast. The file structure of the website is mirrored, and the code is complete without modification.

Last modification: October 10, 2018
If you think my article is useful to you, please feel free to appreciate it