Wget Download, Resume, Handle Network Issues Flashcards

1
Q

Where the wget store these downloads?

A

In your current directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What command to downloading files?

A

Wget [ URL ]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to specifying the filename for the downloaded file?

A

wget -O [ customname ] [ URL ]

-O stand for —output-document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What flag to turning wget’s output off and show progress bar?

A
  • q —show-progress

- q stand for —quiet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to downloading multiple files?

A

Create .txt file, insert urls of the files.

wget -i [ Name of txt file ] -P [ DirUWantToStore ] -q —show-progress

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to limiting download speed?

A

wget —limit-rate [ Number in b, kb, mb,… ]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to overwrite file already downloaded?

A

Use the same name but different link to overwrite.
Ex: u download first file as gg.txt with link haha.url
u download second file same name with gg.txt but different link zz.url

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to resume corrupt download file?

A

Use -c flag, note that this will only work if you run this command in the same dir as the incomplete file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to downloading in the background?

A

Use flag -b, after that it will create wget-log file in your working dir. Read this file with tail -f wget-log.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to set timeout when download file?

A

Limit number of times that wget tries to reach server with flag -T [ Second ]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to setting maximum number of tries?

A

Set how many times wget attemps to download a file after being interrupted by passing —tries=[ NumberOfTry ]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly