How to hide wget output in Linux?

LinuxBashWget

Linux Problem Overview


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?

Linux Solutions


Solution 1 - Linux

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
$

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAshot KhachatryanView Question on Stackoverflow
Solution 1 - LinuxfedorquiView Answer on Stackoverflow