1.wget command: wget is a tool for downloading files, which is used at the command line. This is an essential tool for Linux users, especially for network administrators, who often download software or restore backups from remote servers to a local server. If we use a virtual host, we can only download from the remote server to our computer disk and then upload it to the server using the FTP tool. This is a waste of time and energy, there is no way to do. To a Linux VPS, it can be downloaded directly to the server without having to upload this step. The Wget tool is small but fully functional, it supports breakpoint download function, supports FTP and HTTP download, supports proxy server and is easy to set up.
2. Download a single file using wget: A progress bar is displayed during the download, including (Percent download complete, bytes already downloaded, current download speed, remaining download time)
? wget http://cn.wordpress.org/wordpress-3.1-zh_cn.zip #从网络下载一个文件并保存在当前目录
3. Using Wget-o to download and save with a different file name, wget default to the last character that matches the "/" and the file name is usually incorrect for dynamically linked downloads
? wget http://www.centos.bz/download\?id\=1 #即使下载的文件是zip格式, it still takes download.php?id=1080 command
? /etc Wget-o wordpress.zip http://www.centos.bz/download.php\?id\=1080 #为了解决这个问题, we can use the parameter-o to specify a file name
Summary of commands used in Linux work