【问题标题】:How to hide wget output in Linux? [closed]如何在 Linux 中隐藏 wget 输出? [关闭]
【发布时间】:2015-05-08 12:07:07
【问题描述】:

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

我该怎么做?

【问题讨论】:

  • What topics can I ask about here? 中,他们提到了一个有效问题,它涵盖了程序员常用的软件工具,并且是软件开发独有的实用、可回答的问题。我认为这里就是这种情况,为此我投票支持重新开放(注意the reformatting),我前段时间为了这个目标做了。
  • 我同意,这应该重新打开

标签: linux bash wget


【解决方案1】:

你为什么不用-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
$

【讨论】:

    猜你喜欢
    • 2012-10-17
    • 1970-01-01
    • 1970-01-01
    • 2013-07-02
    • 2011-10-06
    • 1970-01-01
    • 2016-06-30
    • 2012-11-14
    • 1970-01-01
    相关资源
    最近更新 更多