zoukankan      html  css  js  c++  java
  • 【linux命令】wget

    感谢作者:八雲苗
    链接:https://www.jianshu.com/p/1c3847fa7e45

    wget官方文档:wget
    wget是一个使用HTTP,HTTPS,FTP和FTPS协议来下载文件的免费软件。它是一个非交互式工具,因此它可以很轻松地通过脚本、cron和终端来调用。

    GNU Wget is a free software package for retrieving files using HTTP,
    HTTPS, FTP and FTPS the most widely-used Internet protocols. It is a
    non-interactive commandline tool, so it may easily be called from
    scripts, cron jobs, terminals without X-Windows support, etc.

    基本的语法是:wget [参数列表] URL
    详细参数可以查看官方手册
    常用实例:

    • 下载单个文件
      wget http://www.baidu.com/index.html

    • 使用wget -O下载并以不同的文件名保存
      wget -O 1.txt http://www.baidu.com/index.html

    • 使用wget –limit -rate限速下载
      wget –limit-rate=300k http://www.baidu.com/index.html

    • 使用wget -c断点续传,重新启动下载中断的文件
      需要继续中断的下载时可以使用-c参数
      wget -c http://www.baidu.com/index.html

    • 使用wget -b后台下载
      对于下载非常大的文件的时候,我们可以使用参数-b进行后台下载
      wget -b http://www.baidu.com/index.html
      你可以使用以下命令来察看下载进度
      tail -f wget-log

  • 相关阅读:
    Euraka适合初学者的简单小demo
    springboot中常用的依赖
    SpringBoot的入门程序
    spring-data-solr查询
    SpringBoot整合Redis
    SpringBoot整合MyBatis
    使用swagger2生成文档
    SpringBoot整合Spring Data JPA
    SpringBoot构建RESTful API
    SpringBoot属性配置
  • 原文地址:https://www.cnblogs.com/tfxz/p/12621520.html
Copyright © 2011-2022 走看看