Linux命令:wget
wget命令
参数 | 作用 |
---|---|
-p | 下载页面内所有资源,包括图片、视频等 |
-r | 递归下载 |
使用wget命令下载LinuxProbe.pdf
root@LAPTOP-HJMUH10E:/home/code# wget http://www.linuxprobe.com/docs/LinuxProbe.pdf
--2021-10-26 23:44:36-- http://www.linuxprobe.com/docs/LinuxProbe.pdf
Resolving www.linuxprobe.com (www.linuxprobe.com)... 112.19.5.225
Connecting to www.linuxprobe.com (www.linuxprobe.com)|112.19.5.225|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.linuxprobe.com/docs/LinuxProbe.pdf [following]
--2021-10-26 23:44:36-- https://www.linuxprobe.com/docs/LinuxProbe.pdf
Connecting to www.linuxprobe.com (www.linuxprobe.com)|112.19.5.225|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17676281 (17M) [application/pdf]
Saving to: ‘LinuxProbe.pdf’LinuxProbe.pdf 100%[=================================================>] 16.86M 11.1MB/s in 1.5s2021-10-26 23:44:37 (11.1 MB/s) - ‘LinuxProbe.pdf’ saved [17676281/17676281]
使用wget命令递归下载www.LinuxProbe.com网站内的所有页面数以及文件
root@LAPTOP-HJMUH10E:/home/code/www.linuxprobe.com# wget -r -p http://www.LinuxProbe.com
--2021-10-27 00:03:18-- http://www.linuxprobe.com/
Resolving www.linuxprobe.com (www.linuxprobe.com)... 112.19.5.225
Connecting to www.linuxprobe.com (www.linuxprobe.com)|112.19.5.225|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.linuxprobe.com/ [following]
--2021-10-27 00:03:18-- https://www.linuxprobe.com/
Connecting to www.linuxprobe.com (www.linuxprobe.com)|112.19.5.225|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘www.linuxprobe.com/index.html’www.linuxprobe.com/index.html [ <=> ] 78.16K --.-KB/s in 0.04s2021-10-27 00:03:18 (1.91 MB/s) - ‘www.linuxprobe.com/index.html’ saved [80036]Loading robots.txt; please ignore errors.
--2021-10-27 00:03:18-- https://www.linuxprobe.com/robots.txt
Reusing existing connection to www.linuxprobe.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 243 [text/plain]
Saving to: ‘www.linuxprobe.com/robots.txt’www.linuxprobe.com/robots.txt 100%[====================================================================================================>] 243 --.-KB/s in 0s2021-10-27 00:03:18 (16.9 MB/s) - ‘www.linuxprobe.com/robots.txt’ saved [243/243]--2021-10-27 00:03:18-- https://www.linuxprobe.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.1
Reusing existing connection to www.linuxprobe.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 80574 (79K) [text/css]
Saving to: ‘www.linuxprobe.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.1’www.linuxprobe.com/wp-includes/css/dist/block-l 100%[====================================================================================================>] 78.69K --.-KB/s in 0.01s2021-10-27 00:03:18 (7.56 MB/s) - ‘www.linuxprobe.com/wp-includes/css/dist/block-library/style.min.css?ver=5.8.1’ saved [80574/80574]--2021-10-27 00:03:18-- https://www.linuxprobe.com/wp-content/plugins/table-of-contents-plus/screen.min.css?ver=2106
Reusing existing connection to www.linuxprobe.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 1156 (1.1K) [text/css]
Saving to: ‘www.linuxprobe.com/wp-content/plugins/table-of-contents-plus/screen.min.css?ver=2106’www.linuxprobe.com/wp-content/plugins/table-of- 100%[====================================================================================================>] 1.13K --.-KB/s in 0s2021-10-27 00:03:18 (95.0 MB/s) - ‘www.linuxprobe.com/wp-content/plugins/table-of-contents-plus/screen.min.css?ver=2106’ saved [1156/1156]--2021-10-27 00:03:18-- https://www.linuxprobe.com/wp-content/themes/zanblog2_1_0/ui/css/bootstrap.css?ver=3.0.0
Reusing existing connection to www.linuxprobe.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 127734 (125K) [text/css]
Saving to: ‘www.linuxprobe.com/wp-content/themes/zanblog2_1_0/ui/css/bootstrap.css?ver=3.0.0’www.linuxprobe.com/wp-content/themes/zanblog2_1 100%[====================================================================================================>] 124.74K --.-KB/s in 0.009s2021-10-27 00:03:18 (13.4 MB/s) - ‘www.linuxprobe.com/wp-content/themes/zanblog2_1_0/ui/css/bootstrap.css?ver=3.0.0’ saved [127734/127734]--2021-10-27 00:03:18-- https://www.linuxprobe.com/wp-content/themes/zanblog2_1_0/ui/font-awesome/css/font-awesome.min.css?ver=4.0.1
Reusing existing connection to www.linuxprobe.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 18079 (18K) [text/css]
Saving to: ‘www.linuxprobe.com/wp-content/themes/zanblog2_1_0/ui/font-awesome/css/font-awesome.min.css?ver=4.0.1’www.linuxprobe.com/wp-content/themes/zanblog2_1 100%[====================================================================================================>] 17.66K --.-KB/s in 0s
Linux命令:wget相关推荐
- Linux命令 - wget
文章目录 Linux命令 - wget 1.命令介绍 2.语法 3.wget选项 4.参数 5.日常使用 1.下载单个文件到当前目录 2.下载文件并重命名文件 3.后台下载 4.同时下载多个链接的文件 ...
- Python学习——Linux命令——wget命令
今天听说了一个特别牛逼的Linux命令,然后去搜了一下资料,对它有了简单的了解,总结了一些它的用法.wget是一个下载文件的工具,它也是用在小黑窗口中的.对于Linux用户来说简直是一大福利.因为我们 ...
- linux命令wget的url路径太长,Linux中WGET下载https链接及WGET命令的详解
Linux中WGET下载https链接及WGET命令的详解 使用如下的命令下载https链接: ```bash wget -r -np -nd --accept=gz --no-check-certi ...
- linux命令wget下载jdk(完整解决诸多异常)
登录oracle官网:https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.htm ...
- linux命令wget多个参数,wget 命令参数使用方法
wget 命令参数用法: -P 指定下载文件的存放目录 /dir -O 指定下载文件的名字,重命名 /dir/file -o 屏幕输出信息保存到日志中:相当于 > /dir/logfile - ...
- Linux命令--wget
wget GNU Wget 1.14,非交互式的网络文件下载工具. 用法: wget [选项]... [URL]...长选项所必须的参数在使用短选项时也是必须的.启动:-V, --version 显示 ...
- python实现Linux命令wget
#!/bin/python #coding:utf-8 def wget(url,new_name=""):'''wget封装,需提供下载地址,新文件名参数可省略'''try:fi ...
- 实战中收藏已久的Linux命令
文章目录 常见的Linux命令 wget 命令 date 命令 top 命令 tar 命令 - 压缩和解压 grep 命令 - 基础正则表达式 sed 命令 - 进行替换.删除.新增.选取,应用场景主 ...
- linux命令行中curl和wget自动解压功能对比
在linux的终端环境下, 我们经常使用curl或是wget来快速下载网页, 其实它们之间还是有很多细微区别的, 比如http 1.1的兼容问题, gzip解压缩功能等等. 下面是我在实践中遇到的w ...
- linux下载文件的常用命令wget
wget是Linux最常用的下载命令, 一般的使用方法是: wget + 空格 + 要下载文件的url路径 例如: # wget http://www.linuxsense.org/xxxx/xxx. ...
最新文章
- 当CPU飙高时,它在做什么
- 深度神经网络在NLP的应用!
- 代码逻辑是分方法写好 还是在一个方法写好_这一团糟的代码,真的是我写的吗?...
- 参加中国十大IT杰出博客
- idea 设置项目跑在tomcat上
- html中函数的意义,理解函数式 CSS
- 设置行间距_Word涨薪第五十四式:解决无法调整行间距的情况
- iOS 开发者账号共用发布证书 (Distribution)问题
- 大学计算机应用基础第三版简答题答案,大学计算机应用基础习题答案
- QQ红包源码 大转盘抽奖源码下载 微信红包源码
- 无响应_搭建的Redis高可用,突然频繁无响应怎么破?
- linux配置ARP内核参数,详细讲解linux内核参数arp_announce和arp_ignore
- js解析xml字符串或xml文件,将其转换为xml对象方法
- 【图像处理基础】基于matlab GUI图像处理(反色+亮度+二值化+空间肤色检测)【含Matlab源码 1008期】
- loadrunner 及 QTP 下载地址
- bootstrap——模态框
- 七层网络性能基准测试中的协调遗漏问题--Coordinated Omission
- 大学计算机数学基础2,计算机数学基础-中国大学mooc-题库零氪
- 读书笔记---季凯帆的《解读基金,我的投资观与实践》
- LuLu UI - 腾讯阅文集团出品的“半封装” 开源 Web UI 组件库,特点是面向设计、简单灵活、支持 Vue