Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide wget output in Linux? [closed]

Tags:

linux

bash

wget

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?

like image 209
Ashot Khachatryan Avatar asked May 08 '15 12:05

Ashot Khachatryan


People also ask

How do I make wget silent?

You can use -nv or --no-verbose to make wget less verbose, but it won't show download progress in that case. Show activity on this post. --show-progress will override the "quiet" flag.

How do I turn off wget in Linux?

In many shells, CTRL+C will cancel the currently-running process. If you are running a Linux shell, pkill -9 wget should be able to force-kill it if it's running in the background.

How do I view wget progress?

Showing Progress Bar Only. The -q option turns off the wget output, and the –show-progress option forces wget to display the progress bar in any verbosity. Note that the –show-progress option is only available since GNU wget 1.16.

What is wget spider?

The wget tool is essentially a spider that scrapes / leeches web pages but some web hosts may block these spiders with the robots. txt files. Also, wget will not follow links on web pages that use the rel=nofollow attribute. You can however force wget to ignore the robots.


1 Answers

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 $ 
like image 132
fedorqui 'SO stop harming' Avatar answered Sep 28 '22 16:09

fedorqui 'SO stop harming'