Wget Commands: Examples. Console program for downloading files over the Wget network

It would seem that in a world where half of the world's population is actively using computers and is used to stylish graphical interfaces and its rich features, there is no longer room for text applications. Some 20 years ago, the computer interface was a terrible black panel that did not display anything but a set of white characters, and all control was carried out through text commands. Surprisingly, just as ugly these programs are, they are just as functional and reliable.

What is Wget?

Wget (also called GNU Wget Linux) is a console, non-interactive file and web page application. In fact, this is a program for downloading files from the Internet, characterized by the lack of a graphical interface and a number of management features that are not typical for more modern solutions.

, Linux. ( GetURL) 1996 . GNU. Linux. , Wget Windows 7 ( ), Wget MacOS .

wget commands




- , , , , , , .





, , . Wget , , . , -, .

, .

Wget , , - HTML ( ). FTP.

wget linux




, - ( -), -. - ( -).

Wget , ( , RANGE). Wget ( ) (Wget ) -.





, -, - .

Wget Linux . , Linux, . , Wget Windows 7 , . Linux, . Linux Wget-. Ubuntu, Fedora, openSUSE , , . .

program for downloading files




Wget-:

:

  • -V – , ;
  • -h – ;
  • -b – ;

Wget- . :

  • -o logfile – -, ;
  • -a logfile – - ;
  • -d – ( );
  • -q – ;
  • -v – , , ( );
  • -nv – , . ;
  • -i file ( ) – , ; , HTML, ;
  • -f – HTML; HTML , , , <base href=”url”>.

Wget. :

wget command not found




  • --bind-address=ADDRESS – bind ADDRESS . TCP/IP, IP- ( ).
  • -t number ( ) – . number .
  • -nc – , , . (-N, -nc, -r), Wget . -r .
  • - – , ( Wget ). . , Wget . , RANGE.

wget commands examples




  • --progress – . –progress=bar progress=dot.
  • --spider – ;
  • -w ( ) – .
  • -q ( ) – . , ( , - ).

HTTP

  • --http-user= --http-passwd= – -, .
  • -C = on/off – .
  • --cookies = on/off – , cache, cookies. , cookie, . , cookie- .
  • --save-cookies – cookie ( ).
  • --proxy-user –proxy-passwd – - ( ).

ubuntu team wget




FTP

Wget. FTP:

  • -nr – .listing, FTP;
  • -g on/off – FTP;
  • --passive-ftp – Firewall’, FTP ( ).

Wget-:

, , . Wget-, , - /terminal: Wget * *.

, : Wget -c * *.

wget ftp commands




, Wget -i filelist.txt.

-, , . , -, .wgetrc.

You can save the web page as links (it will be difficult to open them on the local machine) using the Wget -m * link command with the exact and full path to the file *.

To make the same page available for viewing without connecting to the Internet, you can use the Wget -r -10 -k * link command with the exact and full path to the file *.

Wget format error command not found can mean any typo and incorrectly specified parameter.




All Articles