linux 中wget命令的几个常用选项
001、-O选项, 指定输出的文件名
[root@PC1 test]# wget -O download.file https://sra-downloadb.be-md.ncbi.nlm.nih.gov/sos5/sra-pub-zq-11/SRR001/770/SRR1770413/SRR1770413.sralite.1 [root@PC1 test]# ls download.file
002、 -c选项:断点续传
[root@PC1 test]# wget -c /home/temp/xxx.file https://sra-downloadb.be-md.ncbi.nlm.nih.gov/sos5/sra-pub-zq-11/SRR001/770/SRR1770413/SRR1770413.sralite.1 [root@PC1 test]# ls SRR1770413.sralite.1
003、 -b选项:后台下载
[root@PC1 test]# ls [root@PC1 test]# wget -b /home/temp/xxx.file https://sra-downloadb.be-md.ncbi.nlm.nih.gov/sos5/sra-pub-zq-11/SRR001/770/SRR1770413/SRR1770413.sralite.1 Continuing in background, pid 5194. Output will be written to ‘wget-log’. [root@PC1 test]# ls SRR1770413.sralite.1 wget-log
004、-i 选项下载多个文件
[root@PC1 test]# ls download.list [root@PC1 test]# cat download.list ## 多个下载链接 https://sra-downloadb.be-md.ncbi.nlm.nih.gov/sos5/sra-pub-zq-11/SRR001/770/SRR1770413/SRR1770413.sralite.1 https://github.com/vcftools/vcftools/releases/download/v0.1.16/vcftools-0.1.16.tar.gz [root@PC1 test]# wget -i download.list [root@PC1 test]# ls download.list SRR1770413.sralite.1 vcftools-0.1.16.tar.gz