In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Wget is a file download tool that comes with most linux. Using wget, you can download files from the network to the local server. In the * test, wget is used frequently. Usually, wget is used to download relevant tools to our * servers from their own external network hosts (not necessarily external network hosts, mainly to allow the target hosts of * * to access) to implement *. In most cases, just download webshell, port forwarding tools, rights raising tools, and so on!
Basic syntax is used:
Wget url / / this mainly downloads a single file from the network and saves it to the current directory
Use this download command to automatically command the last / following content, and if there is a duplicate name, it will automatically add names such as .1meme.2.
Root@VM-12-155-debian:~/eth20# lsroot@VM-12-155-debian:~/eth20# wget http://www.baidu.com/index.html--2017-08-23 09 root@VM-12 46-http://www.baidu.com/index.htmlResolving www.baidu.com (www.baidu.com). 220.181.112.244, 220.181.111.188Connecting to www.baidu.com (www.baidu.com) | 220.181.112.244 |: 80. Connected.HTTP request sent, awaiting response... 200 OKLength: 2381 (2.3K) [text/html] Saving to: 'index.html'index.html 100% [= >] 2.33K -.-KB/s in 0s2017-08-23 09:14:46 (324 MB/s) -' index.html' saved [2381 MB/s 2381] root@VM-12-155-debian:~/eth20# lsindex.htmlroot@VM-12-155-debian:~/eth20#
If we need to rename the downloaded file, we need to use the-O (not zero, uppercase Euro) parameter!
Root@VM-12-155-debian:~/eth20# wget-O baidu.html http://www.baidu.com/index.html. Root@VM-12-155-debian:~/eth20# lsbaidu.html index.htmlroot@VM-12-155-debian:~/eth20#
Sometimes our network is unstable, which will lead to download interruption, which is we need to use the-c parameter for breakpoint continuation!
Root@VM-12-155-debian:~/eth20# wget-c http://www.baidu.com/index.html. Root@VM-12-155-debian:~/eth20#
But sometimes the file we download is very large, and then the download is always interrupted, so it is very worrying if we use the-c parameter for breakpoint continuation every time, so we need to use the-b parameter for background download! In *, due to the limitations of some tools, the network timeout is always displayed, and then the download fails, so we can use the-b parameter to download, and then use cat wget-log to check the download progress!
Root@VM-12-155-debian:~/eth20# wget- b http://www.baidu.com/index.htmlContinuing in background, pid 7709.Output will be written to 'wget-log'.root@VM-12-155-debian:~/eth20# cat wget-logResolving www.baidu.com (www.baidu.com). 220.181.112.244, 220.181.111.188Connecting to www.baidu.com (www.baidu.com) | 220.181.112.244 |: 80. Connected.HTTP request sent, awaiting response... 200 OKLength: 2381 (2.3K) [text/html] Saving to: 'index.html.1' 0K.. 100% 380M=0s2017-08-23 09:23:43 (380 MB/s)-'index.html.1' saved [2381 MB/s 2381]
In addition, in the * test, the current path of the command that may be obtained is not necessarily the accessible path of the website, and the absolute accessible path of the website is obtained by other means. then we can use-P to download the network file to the specified directory!
Root@VM-12-155-debian:~/eth20# wget-P / root/eth20/eth20/ http://www.baidu.com/index.html--2017-08-23 09 Von 40 155-debian:~/eth20# wget 42-http://www.baidu.com/index.htmlResolving www.baidu.com (www.baidu.com). 14.215.177.37, 14.215.177.38Connecting to www.baidu.com (www.baidu.com) | 14.215.177.37 |: 80. Connected.HTTP request sent, awaiting response... 200 OKLength: 2381 (2.3K) [text/html] Saving to:'/ root/eth20/eth20/index.html'index.html 100% [= >] 2.33K -.-- KB/s in 0s2017-08-23 09:40:42 (472MB/s) -'/ root/eth20/eth20/index.html' saved [2381 155-debian:~/eth20# ls eth20/index.htmlroot@VM-12 2381] root@VM-12-155-debian:~/eth20# ls eth20/index.htmlroot@VM-12-155-debian:~/eth20#
For some reason, it is not successful to use-P and-O at the same time. Is it not supported?
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 258
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.