wget默认动作,是将目标URL的应答保存成文件。
如果想将应答直接打印在控制台上,可使用下列参数:
wget -q -O- /wget -qO-
注:
-q: quiet模式,屏蔽request header信息的回显 。
-O: 指定输
冒号在shell中表示空指令。
原文如下:
:
null command [colon]. This is the shell equivalent of a 'NOP' (no op, a do-nothing operation). It
may be considered a synonym for the shell builtin true. The ':' command is itself a Bash builtin, and its exit status is true (0).
所以:
: > file 用于清空文件
下面这种形式是Here Document的一种用法,用于注释一段代码块
:<<BLOCK
...
segment
...
BLOCK