Where to start First steps track · 15 stages
Linux Labs

wget — downloading files over the network

cheat sheet · GNU wget https://lab.dimsanych.ru/en/wiki/wget/

Cheat sheet

  • wget URL download it
  • wget -O name URL under your own name
  • wget -c URL resume it
  • wget -O- URL | cmd to stdout (into a pipeline)
  • wget -i urls.txt a list of URLs
  • wget -r -np -k -p URL mirror a directory

Options

-r (recursion) without -np (don't go above the starting directory) and without -l N (depth limit) has no natural limit — the download will follow every link on the site, including external ones, until you stop it manually. -c resumes an interrupted download only if the server supports Range — otherwise it starts over from zero regardless of the flag.

Loading…