Forrest logo
back to the wget tool

wget:ai:0b2c3

how do i mirror a website
$ wget -r -p -k -E http://example.com
try on your machine

This command uses the 'wget' tool to mirror a website. The '-r' flag enables recursive downloading, '-p' preserves the directory structure, '-k' converts links to relative ones, and '-E' adjusts extensions to match the content type.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • how do i mirror a website?
back to the wget tool