Forrest logo
back to the wget tool

wget:tldr:67f18

wget: Limit the download speed and the number of connection retries.
$ wget --limit-rate=${300k} --tries=${100} ${https:--example-com-somepath-}
try on your machine

The command wget stands for "web get" and is a popular command-line tool used to download files from the internet.

Let's break down the command you provided:

wget - This is the main command to initiate the download using wget.

--limit-rate=${300k} - This option is used to limit the download speed. The 300k value represents the maximum rate in kilobits per second (kbps) you want to allow for downloading. It can be adjusted to any desired limit; 300k limits the rate to 300 kilobits per second.

--tries=${100} - This option specifies the number of tries that wget will attempt to download the file. If the download fails, wget will retry a specified number of times. In this case, it is set to 100, meaning wget will attempt to download the file 100 times before giving up.

${https:--example-com-somepath-} - This is the URL of the file you want to download. In this example, the URL is https://example.com/somepath/. The ${} syntax indicates that the value is a variable that should be substituted with the actual URL. Make sure to remove the ${} when executing the command and replace it with the URL directly.

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.
back to the wget tool