117

I don't want to see any message when I use wget. I want to suppress all the output it normally produces on the screen.

How can I do it?

Ramratan Gupta
  • 1,056
  • 3
  • 17
  • 39
Ashot Khachatryan
  • 2,156
  • 2
  • 14
  • 30
  • 2
    In [What topics can I ask about here?](https://stackoverflow.com/help/on-topic) they mention a valid question as one that covers _software tools commonly used by programmers_ and is _a practical, answerable problem that is unique to software development_. I think this is the case here, and for this I vote for reopening (note [the reformatting](https://stackoverflow.com/posts/30123463/revisions)) I did some time ago with this goal. – fedorqui Apr 29 '21 at 13:00
  • 2
    I agree, this should be reopened – Arco Bast Dec 10 '21 at 13:36
  • 1
    The single answer here is sufficient, so I don't think this needs to be re-opened, but with > 100 votes on the question and > 200 votes on the single answer, it tells me that moderators sometimes miss the mark on what does or does not meet the guidelines. – Dale C. Anderson May 25 '23 at 22:16

1 Answers1

209

Why don't you use -q?

From man wget:

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

Test

$ 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]

And:

$ wget -q www.google.com
$
fedorqui
  • 275,237
  • 103
  • 548
  • 598