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 @   小鲨鱼2018  阅读(1017)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示