How to Run wget in Quiet Mode to Suppress Output?
When automating scripts or downloading files via the command line,
the default verbose output of the wget utility can clutter
your terminal or fill up log files. Fortunately, GNU wget
provides built-in command-line flags specifically designed to suppress
this output. This article demonstrates how to use the quiet and
no-verbose modes, explains the differences between them, and shows how
to redirect output or save specific errors to a log file for better
automation.
The Ultimate Short
Answer: Use -q or --quiet
The most direct way to force wget to run without
displaying any output is to use the -q (or
--quiet) option. This turns off all of wget’s
output, including the progress bar, download speed, and HTTP status
codes.
wget -q https://example.com/file.zipIf you prefer long-form options for readability in your shell
scripts, you can use --quiet:
wget --quiet https://example.com/file.zipWhen this option is active, wget will perform the
download completely in the background of your terminal session,
remaining entirely silent unless it encounters a fatal system error.
An Alternative: The
No-Verbose Mode (-nv)
Sometimes, turning off all output is a bit too restrictive,
especially if you still want to know whether the download succeeded or
failed. In these scenarios, the -nv (or
--no-verbose) option is highly effective.
wget -nv https://example.com/file.zipThe no-verbose mode suppresses the heavy visual elements like the progress bar and connection details, but it will still print basic error messages and a single-line confirmation once the download finishes.
| Feature | wget -q (Quiet) |
wget -nv (No-Verbose) |
|---|---|---|
| Progress Bar | Hidden | Hidden |
| HTTP Status Logs | Hidden | Hidden |
| Success Confirmation | Hidden | Shown (Single line) |
| Error Messages | Hidden | Shown |
Redirecting Output as a Quiet Workaround
If you want to keep wget running normally but simply
hide the output from your current terminal screen, you can use standard
shell redirection. Redirecting the standard output and standard error to
/dev/null achieves a similar effect to quiet mode:
wget https://example.com/file.zip > /dev/null 2>&1Alternatively, if you want a quiet terminal but still need to review
what happened later, you can redirect the wget log to a
specific file using the -o flag. This keeps the command
line completely quiet while saving the verbose details to a text
document:
wget -o download_log.txt https://example.com/file.zip