wget cheatsheet

  • To download a URL:
$ wget url_to_download

It writes to the current directory with a filename same as in the URL.

  • To download a URL, but write to a specific filename:
$ wget -O write_to_this_file url_to_download
  • To download a URL and write inside a specific directory:
$ wget -P this_dir url_to_download
  • To download a list of URLs stored in a file, one URL per line:
$ wget -i list_of_urls.txt
  • By default, wget is quite verbose and displays progress bar and other details for each URL. To download quietly:
$ wget -q url_to_download

Tried with: Wget 1.15 and Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s