Commands.page Logo

How to Disable Progress Bar in Wget on Ubuntu Linux

This article provides a concise explanation for Ubuntu users who need to suppress verbose output when downloading files. It focuses specifically on the wget command-line utility and identifies the exact flag required to stop progress bars from appearing in the terminal.

To disable the printing of progress bars in wget, you must use the quiet flag. This option suppresses all output from wget, including the progress bar, error messages, and download statistics. The flag can be written as -q or --quiet.

Command Usage

Here is the basic syntax for using the flag:

wget -q [URL]

Or using the long form:

wget --quiet [URL]

When to Use This Flag

Disabling the progress bar is particularly useful when running wget within scripts or cron jobs. In automated environments, scrolling progress bars can clutter log files and make it difficult to read actual error messages. By using the quiet flag, you ensure that wget only outputs information if a critical error occurs, provided you do not combine it with other verbose flags.

Example

If you want to download a file named example.zip without seeing the download speed or percentage counter, run the following command in your Ubuntu terminal:

wget -q https://example.com/example.zip

This command will download the file silently in the background until completion.