Summary of commands used in Linux work

Source: Internet
Author: User

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

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.