Rename CentOS with wget command

Source: Internet
Author: User
Tags iqiyi
When I first went back to the dormitory, I had nothing to do. I used vps to download iQiyi video for fun. I just encountered a rename file problem and kept a record. There are two rename concepts, which are different from each other; the first method is to rename the file during Download. most of the commands on the network are described as follows: wget-chttp: // www.5yun.org/images/1/1.jpg-ohuohu.jpguse this linuxdownload command to reload the file.

I just got back to the dormitory and it was okay. I used vps to download iQiyi video for fun. I just encountered a rename file problem and kept a record;
There are two concepts for renaming, which are different from each other;

The first method is to rename the file during the download process. most of the methods on the network are described as follows:

The command is as follows:
Wget-c http://www.5yun.org/images/1/1.jpg-O huohu.jpg

With this command, the file name is huohu.jpg, and-c indicates resumable upload-O rename (O is capitalized );
Generally, it is okay to use this method;

The second method is to rename the file after it is downloaded and transferred.

IQiyi video download links do not provide the first protection method. an error is reported. you can only rename an iQiyi video after the file is downloaded;
The difference is that the location of the-O parameter is different.

The command is as follows:
Wget-O fanbingbing-1.mp4? Key = c5eb57afab6f91ab & uuid = da5df8ed

Simply change the parameter order to download the iQiyi video and rename it.
I used the Los Angeles vps test to download a set of Wu Mei Niang legends. the speed peak reached 9 m/s.

Related Article

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.