linux 系统中wget -O选项

 

-O选项表示将下载的内容进行重命名:

[root@PC1 test]# ls
[root@PC1 test]# wget -O xxxx http://mirrors.aliyun.com/repo/Centos-7.repo    ## 下载内容保存为xxx
--2022-09-19 09:42:39--  http://mirrors.aliyun.com/repo/Centos-7.repo
Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 220.181.135.224, 220.181.135.230, 220.181.135.225, ...
Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|220.181.135.224|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2523 (2.5K) [application/octet-stream]
Saving to: ‘xxxx’

100%[=======================================>] 2,523       --.-K/s   in 0.005s

2022-09-19 09:42:39 (464 KB/s) - ‘xxxx’ saved [2523/2523]

[root@PC1 test]# ls
xxxx
[root@PC1 test]# head -n 2 xxxx
# CentOS-Base.repo
#

 

posted @ 2022-09-19 09:43  小鲨鱼2018  阅读(980)  评论(0编辑  收藏  举报