Intermediate
Linux & Shell Scripting
Q80 / 100
What is the difference between "wget" and "curl" for downloading files from the command line?
Correct! Well done.
Incorrect.
The correct answer is A) Both can download files over HTTP/HTTPS/FTP, but "curl" is built on libcurl and favored for flexible API interaction with detailed request control, while "wget" suits simple, recursive file or website downloads with retry and mirroring
A
Correct Answer
Both can download files over HTTP/HTTPS/FTP, but "curl" is built on libcurl and favored for flexible API interaction with detailed request control, while "wget" suits simple, recursive file or website downloads with retry and mirroring
Explanation
In practice, "curl" is favored for scripting API requests (custom headers, methods, output piping), while "wget" is favored for straightforward downloads, especially recursive website mirroring with "-r".
Progress
80/100