Common linux download tool wgetmygetcurl

Source: Internet
Author: User
Article title: wgetmygetcurl, a common linux download tool. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

  1. Wget

Wget is a very common command line download tool. most Linux releases contain this tool by default. If not installed, you can download the latest version in http://www.gnu.org/software/wget/wget.html and compile the installation using the following command:

# Tar zxvf wget-1.9.1.tar.gz

# Cd wget-1.9.1 #./configure

# Make install

It is easy to use. the format of Wget is as follows: # wget [option] []

1. common Wget parameters

◆-B: download files in the background. Wget downloads files to the current directory by default.

◆-O: download the file to the specified directory.

◆-P: create a directory with the specified name before saving the file.

◆-T: number of attempts to connect. how many attempts will be made when Wget cannot establish a connection with the server.

◆-C: resumable Upload. if the download is interrupted, the download starts from the last breakpoint when the connection is restored.

In addition to the common functions described above, Wget also supports HTTP and FTP proxy functions. you can edit the configuration file "/etc/wgetrc. The specific method is to use the VI editor to open the above file, remove the # before "http_proxy" and "ftp_proxoy", and then enter the address of the corresponding proxy server after the two items, save and exit. In addition, Wget can download the entire site, such as downloading the entire Man manual center of the http://man.chinaunix.net. Enter the following command: # wget-r-p-np-k http://man.chinaunix.net where the-r parameter refers to recursive download, -p refers to downloading all files, slices, and other files required to display the complete web page.-np refers to not searching the upper-level directory, and-k refers to converting absolute links into relative links.

  II. MyGet

MyGet is designed as an extensible multi-thread download tool with rich interfaces. it supports HTTP, FTP, HTTPS, MMS, RTSP, and other protocols. In:

# Tar jxvf myget-0.1.0.tar.bz2

# Cd myget-0.1.0 #./configure

# Make

# Make install

The MyGet command format is as follows: # mytget [option] []

Common options:

◆-D [Directory]: specifies the local location where the downloaded file is stored. the default directory is the current directory.

◆-F [file]: specifies the name of the downloaded file.

◆-H: help options.

◆-N [number of threads]: number of download threads. the default value is 4.

◆-X [proxy server address]: sets the proxy server address, for example, "-x http: // user: password @ host: port ".

MyGet commonly used form: # mytget-d/root/-n 10 linuxsir.org/download/patch/lumaqq_2004t_patch_2005.07.21.00.00.zip "> http://lumaqq.linuxsir.org/download/patch/lumaqq_2004t_patch_2005.07.21.00.00.zip

  III. Curl

Curl is also a good command line download tool in Linux, which is small and fast. The only drawback is that it does not support multi-thread download. Download the latest version at http://curl.haxx.se/download/curl-7.14.0.tar.gz. After the download, you can use the following command to compile and install:

# Tar zxvf curl-7.14.0.tar.gz

# Cd curl: 7.14.0/

#./Configure

# Make

# Make test

# Make install

The Curl format is as follows: # curl [option] []

Typical Curl downloads are as follows: # curl-O http: // 10.1.27.10 /~ Kennycx/tools/lumaqq_2004-linux_gtk2_x86_with_jre.tar.gz uses Curl to download a file and save it to the current directory.

In addition, although Curl does not support multi-threaded download, it can download multiple files at the same time or a part of the downloaded files. you can use the following command to achieve this:

# Curl-r 0-199 http://www.netscape.com/get the first 200 bytes of the file.

You can easily download Curl from common proxies. the specific operations are as follows:

# Curl-x 10.1.27.10: 1022 the ftp://ftp.funet.fi/README uses the proxy server with the proxy address 10.1.27.10 Port 1022 to download a file.

# Curl-U user: passwd-x 10.1.27.10: 1022 ftp://ftp.funet.fi/README if the proxy server requires special authentication, enter a valid account and password at user: passwd.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.