“每天一命令之wget”的版本间的差异
跳到导航
跳到搜索
第4行: | 第4行: | ||
#不下载 , | #不下载 , | ||
-q, --quiet 安静模式 (无信息输出) | -q, --quiet 安静模式 (无信息输出) | ||
+ | |||
+ | == | ||
+ | -O file ,not number 0 | ||
+ | --output-document=file | ||
+ | The documents will not be written to the appropriate files, but all will be concatenated together and written to file. | ||
+ | If - is used as file, documents will be printed to standard output, disabling link conversion. (Use ./- to print to a | ||
+ | file literally named -.) | ||
+ | |||
+ | Use of -O is not intended to mean simply "use the name file instead of the one in the URL;" rather, it is analogous to | ||
+ | shell redirection: wget -O file http://foo is intended to work like wget -O - http://foo > file; file will be truncated | ||
+ | immediately, and all downloaded content will be written there. | ||
+ | |||
=R= | =R= |
2025年2月12日 (三) 04:34的最新版本
eg
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - #不下载 , -q, --quiet 安静模式 (无信息输出)
== -O file ,not number 0
--output-document=file The documents will not be written to the appropriate files, but all will be concatenated together and written to file. If - is used as file, documents will be printed to standard output, disabling link conversion. (Use ./- to print to a file literally named -.)
Use of -O is not intended to mean simply "use the name file instead of the one in the URL;" rather, it is analogous to shell redirection: wget -O file http://foo is intended to work like wget -O - http://foo > file; file will be truncated immediately, and all downloaded content will be written there.