如何在 Linux 中隐藏 wget 输出?

How to hide wget output in Linux?

我不想在使用 wget 时看到任何消息。我想抑制它通常在屏幕上产生的所有输出。

我该怎么做?

你为什么不使用 -q

来自man wget

-q
--quiet
   Turn off Wget's output.

测试

$ wget www.google.com
--2015-05-08 14:07:42--  http://www.google.com/
Resolving www.google.com (www.google.com)... 
  (...)
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’

    [ <=>                                                                                       ] 17,913      --.-K/s   in 0.01s   

2015-05-08 14:07:42 (1.37 MB/s) - ‘index.html’ saved [17913]

并且:

$ wget -q www.google.com
$