共计 1661 个字符,预计需要花费 5 分钟才能阅读完成。
提醒:本文最后更新于2019-07-12 21:01,文中所关联的信息可能已发生改变,请知悉!
[v_act]格式:wget [option]… [URL]…
-O:下载时指定位置保存及指定文件名[/v_act]
不加任何参数直接下载到当前所在位置
[root@localhost ~]# ll
total 8
-rw-------. 1 root root 1301 Jun 22 2017 anaconda-ks.cfg
-rw-r--r-- 1 root root 162 Jan 11 2018 test.txt
[root@localhost ~]# wget http://mirrors.aliyun.com/repo/Centos-7.repo
--2017-04-15 20:30:31-- http://mirrors.aliyun.com/repo/Centos-7.repo
Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 180.101.150.32, 180.101.150.26, 180.101.150.29, ...
Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|180.101.150.32|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2573 (2.5K) [application/octet-stream]
Saving to: ‘Centos-7.repo’
100%[=============================================>] 2,573 --.-K/s in 0s
2017-04-15 20:30:31 (432 MB/s) - ‘Centos-7.repo’ saved [2573/2573]
[root@localhost ~]# ll
total 12
-rw-------. 1 root root 1301 Jun 22 2017 anaconda-ks.cfg
-rw-r--r-- 1 root root 2573 Nov 21 2014 Centos-7.repo
-rw-r--r-- 1 root root 162 Jan 11 2018 test.txt
-O:下载时指定位置保存及指定文件名
[root@localhost ~]# ll /tmp/
total 0
[root@localhost ~]# wget -O /tmp/CentOS.repo http://mirrors.aliyun.com/repo/Centos-7.repo
--2017-04-15 20:36:44-- http://mirrors.aliyun.com/repo/Centos-7.repo
Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 180.101.150.31, 180.101.150.27, 180.101.150.25, ...
Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|180.101.150.31|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2573 (2.5K) [application/octet-stream]
Saving to: ‘/tmp/CentOS.repo’
100%[==================================================================================================================>] 2,573 --.-K/s in 0s
2017-04-15 20:36:44 (9.61 MB/s) - ‘/tmp/CentOS.repo’ saved [2573/2573]
[root@localhost ~]# ll /tmp/
total 4
-rw-r--r-- 1 root root 2573 Nov 21 2014 CentOS.repo
正文完